Added macros to header file for easier function calling.
[wine/multimedia.git] / include / ddeml.h
blob79c12f00a0307618c19de3f0bc3d08370b53b2d8
1 /*
2 * DDEML library definitions
4 * Copyright 1997 Alexandre Julliard
5 * Copyright 1997 Len White
6 */
8 #ifndef __WINE__DDEML_H
9 #define __WINE__DDEML_H
11 #include "wintypes.h"
13 #define MSGF_DDEMGR 0x8001
15 typedef DWORD HCONVLIST;
16 typedef DWORD HCONV;
17 typedef DWORD HSZ;
18 typedef DWORD HDDEDATA;
20 typedef HDDEDATA (CALLBACK *PFNCALLBACK16)(UINT16,UINT16,HCONV,HSZ,HSZ,
21 HDDEDATA,DWORD,DWORD);
22 typedef HDDEDATA (CALLBACK *PFNCALLBACK32)(UINT32,UINT32,HCONV,HSZ,HSZ,
23 HDDEDATA,DWORD,DWORD);
24 DECL_WINELIB_TYPE(PFNCALLBACK)
26 typedef struct
28 UINT16 cb;
29 UINT16 wFlags;
30 UINT16 wCountryID;
31 INT16 iCodePage;
32 DWORD dwLangID;
33 DWORD dwSecurity;
34 } CONVCONTEXT16, *LPCONVCONTEXT16;
36 typedef struct
38 UINT32 cb;
39 UINT32 wFlags;
40 UINT32 wCountryID;
41 INT32 iCodePage;
42 DWORD dwLangID;
43 DWORD dwSecurity;
44 } CONVCONTEXT32, *LPCONVCONTEXT32;
46 DECL_WINELIB_TYPE(CONVCONTEXT)
47 DECL_WINELIB_TYPE(LPCONVCONTEXT)
49 UINT16 WINAPI DdeInitialize16(LPDWORD,PFNCALLBACK16,DWORD,DWORD);
50 UINT32 WINAPI DdeInitialize32A(LPDWORD,PFNCALLBACK32,DWORD,DWORD);
51 UINT32 WINAPI DdeInitialize32W(LPDWORD,PFNCALLBACK32,DWORD,DWORD);
52 #define DdeInitialize WINELIB_NAME_AW(DdeInitialize)
53 BOOL16 WINAPI DdeUninitialize16(DWORD);
54 BOOL32 WINAPI DdeUninitialize32(DWORD);
55 #define DdeUninitialize WINELIB_NAME(DdeUninitialize)
56 HCONVLIST WINAPI DdeConnectList16(DWORD,HSZ,HSZ,HCONVLIST,LPCONVCONTEXT16);
57 HCONVLIST WINAPI DdeConnectList32(DWORD,HSZ,HSZ,HCONVLIST,LPCONVCONTEXT32);
58 #define DdeConnectList WINELIB_NAME(DdeConnectList)
59 HCONV WINAPI DdeQueryNextServer16(HCONVLIST, HCONV);
60 HCONV WINAPI DdeQueryNextServer32(HCONVLIST, HCONV);
61 #define DdeQueryNextServer WINELIB_NAME(DdeQueryNextServer)
62 DWORD WINAPI DdeQueryString32A(DWORD, HSZ, LPSTR, DWORD, INT32);
63 DWORD WINAPI DdeQueryString32W(DWORD, HSZ, LPWSTR, DWORD, INT32);
64 #define DdeQueryString WINELIB_NAME(DdeQueryString)
65 BOOL16 WINAPI DdeDisconnectList16(HCONVLIST);
66 BOOL32 WINAPI DdeDisconnectList32(HCONVLIST);
67 #define DdeDisConnectList WINELIB_NAME(DdeDisconnectList)
68 HCONV WINAPI DdeConnect16(DWORD,HSZ,HSZ,LPCONVCONTEXT16);
69 HCONV WINAPI DdeConnect32(DWORD,HSZ,HSZ,LPCONVCONTEXT32);
70 #define DdeConnect WINELIB_NAME(DdeConnect)
71 BOOL16 WINAPI DdeDisconnect16(HCONV);
72 BOOL32 WINAPI DdeDisconnect32(HCONV);
73 #define DdeDisconnect WINELIB_NAME(DdeDisconnect)
74 BOOL16 WINAPI DdeSetUserHandle(HCONV,DWORD,DWORD);
75 HDDEDATA WINAPI DdeCreateDataHandle16(DWORD,LPBYTE,DWORD,DWORD,HSZ,UINT16,UINT16);
76 HDDEDATA WINAPI DdeCreateDataHandle32(DWORD,LPBYTE,DWORD,DWORD,HSZ,UINT32,UINT32);
77 #define DdeCreateDataHandle WINELIB_NAME(DdeCreateDataHandle)
78 HCONV WINAPI DdeReconnect(HCONV);
79 HSZ WINAPI DdeCreateStringHandle16(DWORD,LPCSTR,INT16);
80 HSZ WINAPI DdeCreateStringHandle32A(DWORD,LPCSTR,INT32);
81 HSZ WINAPI DdeCreateStringHandle32W(DWORD,LPCWSTR,INT32);
82 #define DdeCreateStringHandle WINELIB_NAME_AW(DdeCreateStringHandle)
83 BOOL16 WINAPI DdeFreeStringHandle16(DWORD,HSZ);
84 BOOL32 WINAPI DdeFreeStringHandle32(DWORD,HSZ);
85 #define DdeFreeStringHandle WINELIB_NAME(DdeFreeStringHandle)
86 BOOL16 WINAPI DdeFreeDataHandle16(HDDEDATA);
87 BOOL32 WINAPI DdeFreeDataHandle32(HDDEDATA);
88 #define DdeFreeDataHandle WINELIB_NAME(DdeFreeDataHandle)
89 BOOL16 WINAPI DdeKeepStringHandle16(DWORD,HSZ);
90 BOOL32 WINAPI DdeKeepStringHandle32(DWORD,HSZ);
91 #define DdeKeepStringHandle WINELIB_NAME(DdeKeepStringHandle)
92 HDDEDATA WINAPI DdeClientTransaction16(LPVOID,DWORD,HCONV,HSZ,UINT16,
93 UINT16,DWORD,LPDWORD);
94 HDDEDATA WINAPI DdeClientTransaction32(LPBYTE,DWORD,HCONV,HSZ,UINT32,
95 UINT32,DWORD,LPDWORD);
96 #define DdeClientTransaction WINELIB_NAME(DdeClientTransaction)
97 BOOL16 WINAPI DdeAbandonTransaction(DWORD,HCONV,DWORD);
98 BOOL16 WINAPI DdePostAdvise16(DWORD,HSZ,HSZ);
99 BOOL32 WINAPI DdePostAdvise32(DWORD,HSZ,HSZ);
100 #define DdePostAdvise WINELIB_NAME(DdePostAdvise)
101 HDDEDATA WINAPI DdeAddData(HDDEDATA,LPBYTE,DWORD,DWORD);
102 DWORD WINAPI DdeGetData(HDDEDATA,LPBYTE,DWORD,DWORD);
103 LPBYTE WINAPI DdeAccessData16(HDDEDATA,LPDWORD);
104 LPBYTE WINAPI DdeAccessData32(HDDEDATA,LPDWORD);
105 #define DdeAccessData WINELIB_NAME(DdeAccessData)
106 BOOL16 WINAPI DdeUnaccessData16(HDDEDATA);
107 BOOL32 WINAPI DdeUnaccessData32(HDDEDATA);
108 #define DdeUnaccessData WINELIB_NAME(DdeUnaccessData)
109 BOOL16 WINAPI DdeEnableCallback16(DWORD,HCONV,UINT16);
110 BOOL32 WINAPI DdeEnableCallback32(DWORD,HCONV,UINT32);
111 #define DdeEnableCallback WINELIB_NAME(DdeEnableCallback)
112 int WINAPI DdeCmpStringHandles16(HSZ,HSZ);
113 int WINAPI DdeCmpStringHandles32(HSZ,HSZ);
114 #define DdeCmpStringHandles WINELIB_NAME(DdeCmpStringHandles)
117 HDDEDATA WINAPI DdeNameService16(DWORD,HSZ,HSZ,UINT16);
118 HDDEDATA WINAPI DdeNameService32(DWORD,HSZ,HSZ,UINT32);
119 #define DdeNameService WINELIB_NAME(DdeNameService)
120 UINT16 WINAPI DdeGetLastError16(DWORD);
121 UINT32 WINAPI DdeGetLastError32(DWORD);
122 #define DdeGetLastError WINELIB_NAME(DdeGetLastError)
124 #endif /* __WINE__DDEML_H */