Added a stub for setjmp.
[wine/multimedia.git] / include / ddeml.h
blob516de9fe70e7a865816d5cdc48f35cf5eb376b87
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 "windef.h"
13 #ifdef __cplusplus
14 extern "C" {
15 #endif /* defined(__cplusplus) */
17 /* Codepage Constants
20 #define CP_WINANSI 1004
21 #define CP_WINUNICODE 1200
23 /* DDE synchronisation constants
26 #define MSGF_DDEMGR 0x8001
28 #define QID_SYNC16 -1L
29 #define QID_SYNC 0xFFFFFFFF
31 /* Type variation for MS deliberate departures from ANSI standards
34 #define EXPENTRY CALLBACK
36 /***************************************************
38 FLAGS Section - copied from Microsoft SDK as must be standard, probably Copyright Microsoft Corporation
40 ***************************************************/
43 * Callback filter flags for use with standard apps.
46 #define CBF_FAIL_SELFCONNECTIONS 0x00001000
47 #define CBF_FAIL_CONNECTIONS 0x00002000
48 #define CBF_FAIL_ADVISES 0x00004000
49 #define CBF_FAIL_EXECUTES 0x00008000
50 #define CBF_FAIL_POKES 0x00010000
51 #define CBF_FAIL_REQUESTS 0x00020000
52 #define CBF_FAIL_ALLSVRXACTIONS 0x0003f000
54 #define CBF_SKIP_CONNECT_CONFIRMS 0x00040000
55 #define CBF_SKIP_REGISTRATIONS 0x00080000
56 #define CBF_SKIP_UNREGISTRATIONS 0x00100000
57 #define CBF_SKIP_DISCONNECTS 0x00200000
58 #define CBF_SKIP_ALLNOTIFICATIONS 0x003c0000
60 #define CBR_BLOCK 0xFFFFFFFFL
63 * Application command flags
65 #define APPCMD_CLIENTONLY 0x00000010L
66 #define APPCMD_FILTERINITS 0x00000020L
67 #define APPCMD_MASK 0x00000FF0L
70 * Application classification flags
73 #define APPCLASS_STANDARD 0x00000000L
74 #define APPCLASS_MONITOR 0x00000001L
75 #define APPCLASS_MASK 0x0000000FL
78 * Callback filter flags for use with MONITOR apps - 0 implies no monitor
79 * callbacks.
81 #define MF_HSZ_INFO 0x01000000
82 #define MF_SENDMSGS 0x02000000
83 #define MF_POSTMSGS 0x04000000
84 #define MF_CALLBACKS 0x08000000
85 #define MF_ERRORS 0x10000000
86 #define MF_LINKS 0x20000000
87 #define MF_CONV 0x40000000
89 #define MF_MASK 0xFF000000
92 * DdeNameService service name flags
95 #define DNS_REGISTER 0x0001
96 #define DNS_UNREGISTER 0x0002
97 #define DNS_FILTERON 0x0004
98 #define DNS_FILTEROFF 0x0008
101 /****************************************************
103 End of Flags section
105 ****************************************************/
107 /****************************************************
109 Message Types Section
111 ****************************************************/
113 #define XTYPF_NOBLOCK 0x0002 /* CBR_NOBLOCK will not work */
114 #define XTYPF_NODATA 0x0004 /* DDE_FDEFERUPD */
115 #define XTYPF_ACKREQ 0x0008 /* DDE_FACKREQ */
117 #define XCLASS_MASK 0xFC00
118 #define XCLASS_BOOL 0x1000
119 #define XCLASS_DATA 0x2000
120 #define XCLASS_FLAGS 0x4000
121 #define XCLASS_NOTIFICATION 0x8000
123 #define XTYP_ADVDATA (0x0010 | XCLASS_FLAGS)
124 #define XTYP_XACT_COMPLETE (0x0080 | XCLASS_NOTIFICATION )
125 #define XTYP_REGISTER (0x00A0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK )
126 #define XTYP_REQUEST (0x00B0 | XCLASS_DATA )
127 #define XTYP_DISCONNECT (0x00C0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK )
128 #define XTYP_UNREGISTER (0x00D0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK )
130 /**************************************************
132 End of Message Types Section
134 ****************************************************/
136 /*****************************************************
138 DDE Codes for wStatus field
140 *****************************************************/
142 #define DDE_FACK 0x8000
143 #define DDE_FBUSY 0x4000
144 #define DDE_FDEFERUPD 0x4000
145 #define DDE_FACKREQ 0x8000
146 #define DDE_FRELEASE 0x2000
147 #define DDE_FREQUESTED 0x1000
148 #define DDE_FAPPSTATUS 0x00FF
149 #define DDE_FNOTPROCESSED 0x0000
152 /*****************************************************
154 End of wStatus codes
156 *****************************************************/
158 /****************************************************
160 Return Codes section again copied from SDK as must be same
162 *****************************************************/
164 #define DMLERR_NO_ERROR 0 /* must be 0 */
166 #define DMLERR_FIRST 0x4000
168 #define DMLERR_ADVACKTIMEOUT 0x4000
169 #define DMLERR_BUSY 0x4001
170 #define DMLERR_DATAACKTIMEOUT 0x4002
171 #define DMLERR_DLL_NOT_INITIALIZED 0x4003
172 #define DMLERR_DLL_USAGE 0x4004
173 #define DMLERR_EXECACKTIMEOUT 0x4005
174 #define DMLERR_INVALIDPARAMETER 0x4006
175 #define DMLERR_LOW_MEMORY 0x4007
176 #define DMLERR_MEMORY_ERROR 0x4008
177 #define DMLERR_NOTPROCESSED 0x4009
178 #define DMLERR_NO_CONV_ESTABLISHED 0x400a
179 #define DMLERR_POKEACKTIMEOUT 0x400b
180 #define DMLERR_POSTMSG_FAILED 0x400c
181 #define DMLERR_REENTRANCY 0x400d
182 #define DMLERR_SERVER_DIED 0x400e
183 #define DMLERR_SYS_ERROR 0x400f
184 #define DMLERR_UNADVACKTIMEOUT 0x4010
185 #define DMLERR_UNFOUND_QUEUE_ID 0x4011
187 #define DMLERR_LAST 0x4011
189 /*****************************************************
191 End of Return Codes and Microsoft section
193 ******************************************************/
197 typedef DWORD HCONVLIST;
198 typedef DWORD HCONV;
199 typedef DWORD HSZ;
200 typedef DWORD HDDEDATA;
204 /*******************************************************
206 API Entry Points
208 *******************************************************/
210 typedef HDDEDATA (CALLBACK *PFNCALLBACK16)(UINT16,UINT16,HCONV,HSZ,HSZ,
211 HDDEDATA,DWORD,DWORD);
212 typedef HDDEDATA (CALLBACK *PFNCALLBACK)(UINT,UINT,HCONV,HSZ,HSZ,
213 HDDEDATA,DWORD,DWORD);
215 /***************************************************
217 Externally visible data structures
219 ***************************************************/
221 typedef struct
223 UINT16 cb;
224 UINT16 wFlags;
225 UINT16 wCountryID;
226 INT16 iCodePage;
227 DWORD dwLangID;
228 DWORD dwSecurity;
229 } CONVCONTEXT16, *LPCONVCONTEXT16;
231 typedef struct
233 UINT cb;
234 UINT wFlags;
235 UINT wCountryID;
236 INT iCodePage;
237 DWORD dwLangID;
238 DWORD dwSecurity;
239 } CONVCONTEXT, *LPCONVCONTEXT;
241 typedef struct
243 DWORD cb;
244 DWORD hUser;
245 HCONV hConvPartner;
246 HSZ hszSvcPartner;
247 HSZ hszServiceReq;
248 HSZ hszTopic;
249 HSZ hszItem;
250 UINT16 wFmt;
251 UINT16 wType;
252 UINT16 wStatus;
253 UINT16 wConvst;
254 UINT16 wLastError;
255 HCONVLIST hConvList;
256 CONVCONTEXT16 ConvCtxt;
257 } CONVINFO16, *LPCONVINFO16;
259 typedef struct
261 DWORD cb;
262 DWORD hUser;
263 HCONV hConvPartner;
264 HSZ hszSvcPartner;
265 HSZ hszServiceReq;
266 HSZ hszTopic;
267 HSZ hszItem;
268 UINT wFmt;
269 UINT wType;
270 UINT wStatus;
271 UINT wConvst;
272 UINT wLastError;
273 HCONVLIST hConvList;
274 CONVCONTEXT ConvCtxt;
275 HWND hwnd;
276 HWND hwndPartner;
277 } CONVINFO, *LPCONVINFO;
279 /* Interface Definitions */
282 UINT16 WINAPI DdeInitialize16(LPDWORD,PFNCALLBACK16,DWORD,DWORD);
283 UINT WINAPI DdeInitializeA(LPDWORD,PFNCALLBACK,DWORD,DWORD);
284 UINT WINAPI DdeInitializeW(LPDWORD,PFNCALLBACK,DWORD,DWORD);
285 #define DdeInitialize WINELIB_NAME_AW(DdeInitialize)
286 BOOL16 WINAPI DdeUninitialize16(DWORD);
287 BOOL WINAPI DdeUninitialize(DWORD);
288 HCONVLIST WINAPI DdeConnectList16(DWORD,HSZ,HSZ,HCONVLIST,LPCONVCONTEXT16);
289 HCONVLIST WINAPI DdeConnectList(DWORD,HSZ,HSZ,HCONVLIST,LPCONVCONTEXT);
290 HCONV WINAPI DdeQueryNextServer16(HCONVLIST, HCONV);
291 HCONV WINAPI DdeQueryNextServer(HCONVLIST, HCONV);
292 DWORD WINAPI DdeQueryStringA(DWORD, HSZ, LPSTR, DWORD, INT);
293 DWORD WINAPI DdeQueryStringW(DWORD, HSZ, LPWSTR, DWORD, INT);
294 #define DdeQueryString WINELIB_NAME_AW(DdeQueryString)
295 BOOL16 WINAPI DdeDisconnectList16(HCONVLIST);
296 BOOL WINAPI DdeDisconnectList(HCONVLIST);
297 HCONV WINAPI DdeConnect16(DWORD,HSZ,HSZ,LPCONVCONTEXT16);
298 HCONV WINAPI DdeConnect(DWORD,HSZ,HSZ,LPCONVCONTEXT);
299 BOOL16 WINAPI DdeDisconnect16(HCONV);
300 BOOL WINAPI DdeDisconnect(HCONV);
301 BOOL16 WINAPI DdeSetUserHandle16(HCONV,DWORD,DWORD);
302 HDDEDATA WINAPI DdeCreateDataHandle16(DWORD,LPBYTE,DWORD,DWORD,HSZ,UINT16,UINT16);
303 HDDEDATA WINAPI DdeCreateDataHandle(DWORD,LPBYTE,DWORD,DWORD,HSZ,UINT,UINT);
304 HCONV WINAPI DdeReconnect(HCONV);
305 HSZ WINAPI DdeCreateStringHandle16(DWORD,LPCSTR,INT16);
306 HSZ WINAPI DdeCreateStringHandleA(DWORD,LPCSTR,INT);
307 HSZ WINAPI DdeCreateStringHandleW(DWORD,LPCWSTR,INT);
308 #define DdeCreateStringHandle WINELIB_NAME_AW(DdeCreateStringHandle)
309 BOOL16 WINAPI DdeFreeStringHandle16(DWORD,HSZ);
310 BOOL WINAPI DdeFreeStringHandle(DWORD,HSZ);
311 BOOL16 WINAPI DdeFreeDataHandle16(HDDEDATA);
312 BOOL WINAPI DdeFreeDataHandle(HDDEDATA);
313 BOOL16 WINAPI DdeKeepStringHandle16(DWORD,HSZ);
314 BOOL WINAPI DdeKeepStringHandle(DWORD,HSZ);
315 HDDEDATA WINAPI DdeClientTransaction16(LPVOID,DWORD,HCONV,HSZ,UINT16,
316 UINT16,DWORD,LPDWORD);
317 HDDEDATA WINAPI DdeClientTransaction(LPBYTE,DWORD,HCONV,HSZ,UINT,
318 UINT,DWORD,LPDWORD);
319 BOOL16 WINAPI DdeAbandonTransaction16(DWORD,HCONV,DWORD);
320 BOOL16 WINAPI DdePostAdvise16(DWORD,HSZ,HSZ);
321 BOOL WINAPI DdePostAdvise(DWORD,HSZ,HSZ);
322 HDDEDATA WINAPI DdeAddData16(HDDEDATA,LPBYTE,DWORD,DWORD);
323 DWORD WINAPI DdeGetData(HDDEDATA,LPBYTE,DWORD,DWORD);
324 LPBYTE WINAPI DdeAccessData16(HDDEDATA,LPDWORD);
325 LPBYTE WINAPI DdeAccessData(HDDEDATA,LPDWORD);
326 BOOL16 WINAPI DdeUnaccessData16(HDDEDATA);
327 BOOL WINAPI DdeUnaccessData(HDDEDATA);
328 BOOL16 WINAPI DdeEnableCallback16(DWORD,HCONV,UINT16);
329 BOOL WINAPI DdeEnableCallback(DWORD,HCONV,UINT);
330 int WINAPI DdeCmpStringHandles16(HSZ,HSZ);
331 int WINAPI DdeCmpStringHandles(HSZ,HSZ);
333 HDDEDATA WINAPI DdeNameService16(DWORD,HSZ,HSZ,UINT16);
334 HDDEDATA WINAPI DdeNameService(DWORD,HSZ,HSZ,UINT);
335 UINT16 WINAPI DdeGetLastError16(DWORD);
336 UINT WINAPI DdeGetLastError(DWORD);
337 UINT16 WINAPI DdeQueryConvInfo16(HCONV,DWORD,LPCONVINFO16);
338 UINT WINAPI DdeQueryConvInfo(HCONV,DWORD,LPCONVINFO);
340 #ifdef __cplusplus
341 } /* extern "C" */
342 #endif /* defined(__cplusplus) */
344 #endif /* __WINE_DDEML_H */