VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/ddeml.h@ 19678

Last change on this file since 19678 was 19678, checked in by vboxsync, 16 years ago

opengl: update wine to 1.1.21, add d3d9.dll to build list

  • Property svn:eol-style set to native
File size: 13.0 KB
Line 
1/*
2 * DDEML library definitions
3 *
4 * Copyright 1997 Alexandre Julliard
5 * Copyright 1997 Len White
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 */
21
22/*
23 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
24 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
25 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
26 * a choice of LGPL license versions is made available with the language indicating
27 * that LGPLv2 or any later version may be used, or where a choice of which version
28 * of the LGPL is applied is otherwise unspecified.
29 */
30
31#ifndef __WINE_DDEML_H
32#define __WINE_DDEML_H
33
34#ifdef __cplusplus
35extern "C" {
36#endif /* defined(__cplusplus) */
37
38#ifdef _USER32_
39#define WINUSERAPI
40#else
41#define WINUSERAPI DECLSPEC_IMPORT
42#endif
43
44/* Codepage Constants
45 */
46
47#define CP_WINANSI 1004
48#define CP_WINUNICODE 1200
49
50/* DDE synchronisation constants
51 */
52
53#define MSGF_DDEMGR 0x8001
54
55#define QID_SYNC 0xFFFFFFFF
56
57/* Type variation for MS deliberate departures from ANSI standards
58 */
59
60#define EXPENTRY CALLBACK
61
62#define SZDDESYS_TOPIC TEXT("System")
63#define SZDDESYS_ITEM_TOPICS TEXT("Topics")
64#define SZDDESYS_ITEM_SYSITEMS TEXT("SysItems")
65#define SZDDESYS_ITEM_RTNMSG TEXT("ReturnMessage")
66#define SZDDESYS_ITEM_STATUS TEXT("Status")
67#define SZDDESYS_ITEM_FORMATS TEXT("Formats")
68#define SZDDESYS_ITEM_HELP TEXT("Help")
69#define SZDDE_ITEM_ITEMLIST TEXT("TopicItemList")
70
71/***************************************************
72
73 FLAGS Section - copied from Microsoft SDK as must be standard, probably Copyright Microsoft Corporation
74
75***************************************************/
76
77#define XST_NULL 0
78#define XST_INCOMPLETE 1
79#define XST_CONNECTED 2
80#define XST_INIT1 3
81#define XST_INIT2 4
82#define XST_REQSENT 5
83#define XST_DATARCVD 6
84#define XST_POKESENT 7
85#define XST_POKEACKRCVD 8
86#define XST_EXECSENT 9
87#define XST_EXECACKRCVD 10
88#define XST_ADVSENT 11
89#define XST_UNADVSENT 12
90#define XST_ADVACKRCVD 13
91#define XST_UNADVACKRCVD 14
92#define XST_ADVDATASENT 15
93#define XST_ADVDATAACKRCVD 16
94
95#define ST_CONNECTED 0x0001
96#define ST_ADVISE 0x0002
97#define ST_ISLOCAL 0x0004
98#define ST_BLOCKED 0x0008
99#define ST_CLIENT 0x0010
100#define ST_TERMINATED 0x0020
101#define ST_INLIST 0x0040
102#define ST_BLOCKNEXT 0x0080
103#define ST_ISSELF 0x0100
104
105/*
106 * DdeEnableCallback function codes
107 */
108
109#define EC_ENABLEALL 0
110#define EC_ENABLEONE ST_BLOCKNEXT
111#define EC_DISABLE ST_BLOCKED
112#define EC_QUERYWAITING 2
113
114/*
115 * Callback filter flags for use with standard apps.
116 */
117
118#define CBF_FAIL_SELFCONNECTIONS 0x00001000
119#define CBF_FAIL_CONNECTIONS 0x00002000
120#define CBF_FAIL_ADVISES 0x00004000
121#define CBF_FAIL_EXECUTES 0x00008000
122#define CBF_FAIL_POKES 0x00010000
123#define CBF_FAIL_REQUESTS 0x00020000
124#define CBF_FAIL_ALLSVRXACTIONS 0x0003f000
125
126#define CBF_SKIP_CONNECT_CONFIRMS 0x00040000
127#define CBF_SKIP_REGISTRATIONS 0x00080000
128#define CBF_SKIP_UNREGISTRATIONS 0x00100000
129#define CBF_SKIP_DISCONNECTS 0x00200000
130#define CBF_SKIP_ALLNOTIFICATIONS 0x003c0000
131
132#define CBR_BLOCK ((HDDEDATA)~0UL)
133
134/*
135 * Application command flags
136 */
137#define APPCMD_CLIENTONLY 0x00000010L
138#define APPCMD_FILTERINITS 0x00000020L
139#define APPCMD_MASK 0x00000FF0L
140
141/*
142 * Application classification flags
143 */
144
145#define APPCLASS_STANDARD 0x00000000L
146#define APPCLASS_MONITOR 0x00000001L
147#define APPCLASS_MASK 0x0000000FL
148
149/*
150 * Callback filter flags for use with MONITOR apps - 0 implies no monitor
151 * callbacks.
152 */
153#define MF_HSZ_INFO 0x01000000
154#define MF_SENDMSGS 0x02000000
155#define MF_POSTMSGS 0x04000000
156#define MF_CALLBACKS 0x08000000
157#define MF_ERRORS 0x10000000
158#define MF_LINKS 0x20000000
159#define MF_CONV 0x40000000
160
161#define MF_MASK 0xFF000000
162
163/*
164 * DdeNameService service name flags
165 */
166
167#define DNS_REGISTER 0x0001
168#define DNS_UNREGISTER 0x0002
169#define DNS_FILTERON 0x0004
170#define DNS_FILTEROFF 0x0008
171
172
173/****************************************************
174
175 End of Flags section
176
177****************************************************/
178
179/****************************************************
180
181 Message Types Section
182
183****************************************************/
184
185#define XTYPF_NOBLOCK 0x0002 /* CBR_NOBLOCK will not work */
186#define XTYPF_NODATA 0x0004 /* DDE_FDEFERUPD */
187#define XTYPF_ACKREQ 0x0008 /* DDE_FACKREQ */
188
189#define XCLASS_MASK 0xFC00
190#define XCLASS_BOOL 0x1000
191#define XCLASS_DATA 0x2000
192#define XCLASS_FLAGS 0x4000
193#define XCLASS_NOTIFICATION 0x8000
194
195#define XTYP_ERROR (0x0000 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
196#define XTYP_ADVDATA (0x0010 | XCLASS_FLAGS)
197#define XTYP_ADVREQ (0x0020 | XCLASS_DATA | XTYPF_NOBLOCK)
198#define XTYP_ADVSTART (0x0030 | XCLASS_BOOL)
199#define XTYP_ADVSTOP (0x0040 | XCLASS_NOTIFICATION)
200#define XTYP_EXECUTE (0x0050 | XCLASS_FLAGS)
201#define XTYP_CONNECT (0x0060 | XCLASS_BOOL | XTYPF_NOBLOCK)
202#define XTYP_CONNECT_CONFIRM (0x0070 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
203#define XTYP_XACT_COMPLETE (0x0080 | XCLASS_NOTIFICATION )
204#define XTYP_POKE (0x0090 | XCLASS_FLAGS)
205#define XTYP_REGISTER (0x00A0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK )
206#define XTYP_REQUEST (0x00B0 | XCLASS_DATA )
207#define XTYP_DISCONNECT (0x00C0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK )
208#define XTYP_UNREGISTER (0x00D0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK )
209#define XTYP_WILDCONNECT (0x00E0 | XCLASS_DATA | XTYPF_NOBLOCK)
210#define XTYP_MONITOR (0x00F0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
211
212#define XTYP_MASK 0x00F0
213#define XTYP_SHIFT 4
214
215#define TIMEOUT_ASYNC 0xFFFFFFFF
216
217#define CADV_LATEACK 0xFFFF
218
219/**************************************************
220
221 End of Message Types Section
222
223****************************************************/
224
225/*****************************************************
226
227 DDE Codes for wStatus field
228
229*****************************************************/
230
231#define DDE_FACK 0x8000
232#define DDE_FBUSY 0x4000
233#define DDE_FDEFERUPD 0x4000
234#define DDE_FACKREQ 0x8000
235#define DDE_FRELEASE 0x2000
236#define DDE_FREQUESTED 0x1000
237#define DDE_FAPPSTATUS 0x00FF
238#define DDE_FNOTPROCESSED 0x0000
239
240#define DDE_FACKRESERVED (~(DDE_FACK | DDE_FBUSY | DDE_FAPPSTATUS))
241#define DDE_FADVRESERVED (~(DDE_FACKREQ | DDE_FDEFERUPD))
242#define DDE_FDATRESERVED (~(DDE_FACKREQ | DDE_FRELEASE | DDE_FREQUESTED))
243#define DDE_FPOKRESERVED (~(DDE_FRELEASE))
244
245/*****************************************************
246
247 End of wStatus codes
248
249*****************************************************/
250
251/****************************************************
252
253 Return Codes section again copied from SDK as must be same
254
255*****************************************************/
256
257#define DMLERR_NO_ERROR 0 /* must be 0 */
258
259#define DMLERR_FIRST 0x4000
260
261#define DMLERR_ADVACKTIMEOUT 0x4000
262#define DMLERR_BUSY 0x4001
263#define DMLERR_DATAACKTIMEOUT 0x4002
264#define DMLERR_DLL_NOT_INITIALIZED 0x4003
265#define DMLERR_DLL_USAGE 0x4004
266#define DMLERR_EXECACKTIMEOUT 0x4005
267#define DMLERR_INVALIDPARAMETER 0x4006
268#define DMLERR_LOW_MEMORY 0x4007
269#define DMLERR_MEMORY_ERROR 0x4008
270#define DMLERR_NOTPROCESSED 0x4009
271#define DMLERR_NO_CONV_ESTABLISHED 0x400a
272#define DMLERR_POKEACKTIMEOUT 0x400b
273#define DMLERR_POSTMSG_FAILED 0x400c
274#define DMLERR_REENTRANCY 0x400d
275#define DMLERR_SERVER_DIED 0x400e
276#define DMLERR_SYS_ERROR 0x400f
277#define DMLERR_UNADVACKTIMEOUT 0x4010
278#define DMLERR_UNFOUND_QUEUE_ID 0x4011
279
280#define DMLERR_LAST 0x4011
281
282#define HDATA_APPOWNED 0x0001
283
284/*****************************************************
285
286 End of Return Codes and Microsoft section
287
288******************************************************/
289
290
291
292DECLARE_HANDLE(HCONVLIST);
293DECLARE_HANDLE(HCONV);
294DECLARE_HANDLE(HSZ);
295DECLARE_HANDLE(HDDEDATA);
296
297
298
299/*******************************************************
300
301 API Entry Points
302
303*******************************************************/
304
305typedef HDDEDATA (CALLBACK *PFNCALLBACK)(UINT, UINT, HCONV, HSZ, HSZ,
306 HDDEDATA, ULONG_PTR, ULONG_PTR);
307
308/***************************************************
309
310 Externally visible data structures
311
312***************************************************/
313
314typedef struct tagHSZPAIR
315{
316 HSZ hszSvc;
317 HSZ hszTopic;
318} HSZPAIR, *PHSZPAIR;
319
320typedef struct tagCONVCONTEXT
321{
322 UINT cb;
323 UINT wFlags;
324 UINT wCountryID;
325 INT iCodePage;
326 DWORD dwLangID;
327 DWORD dwSecurity;
328 SECURITY_QUALITY_OF_SERVICE qos;
329} CONVCONTEXT, *PCONVCONTEXT;
330
331typedef struct tagCONVINFO
332{
333 DWORD cb;
334 DWORD_PTR hUser;
335 HCONV hConvPartner;
336 HSZ hszSvcPartner;
337 HSZ hszServiceReq;
338 HSZ hszTopic;
339 HSZ hszItem;
340 UINT wFmt;
341 UINT wType;
342 UINT wStatus;
343 UINT wConvst;
344 UINT wLastError;
345 HCONVLIST hConvList;
346 CONVCONTEXT ConvCtxt;
347 HWND hwnd;
348 HWND hwndPartner;
349} CONVINFO, *PCONVINFO;
350
351/* Interface Definitions */
352
353WINUSERAPI BOOL WINAPI DdeAbandonTransaction(DWORD idInst, HCONV hConv, DWORD idTransaction);
354WINUSERAPI LPBYTE WINAPI DdeAccessData(HDDEDATA,LPDWORD);
355WINUSERAPI HDDEDATA WINAPI DdeAddData(HDDEDATA,LPBYTE,DWORD,DWORD);
356WINUSERAPI HDDEDATA WINAPI DdeClientTransaction(LPBYTE,DWORD,HCONV,HSZ,UINT,UINT,DWORD,LPDWORD);
357WINUSERAPI INT WINAPI DdeCmpStringHandles(HSZ,HSZ);
358WINUSERAPI HCONV WINAPI DdeConnect(DWORD,HSZ,HSZ,PCONVCONTEXT);
359WINUSERAPI HCONVLIST WINAPI DdeConnectList(DWORD,HSZ,HSZ,HCONVLIST,PCONVCONTEXT);
360WINUSERAPI HDDEDATA WINAPI DdeCreateDataHandle(DWORD,LPBYTE,DWORD,DWORD,HSZ,UINT,UINT);
361WINUSERAPI HSZ WINAPI DdeCreateStringHandleA(DWORD,LPCSTR,INT);
362WINUSERAPI HSZ WINAPI DdeCreateStringHandleW(DWORD,LPCWSTR,INT);
363#define DdeCreateStringHandle WINELIB_NAME_AW(DdeCreateStringHandle)
364WINUSERAPI BOOL WINAPI DdeDisconnect(HCONV);
365WINUSERAPI BOOL WINAPI DdeDisconnectList(HCONVLIST);
366WINUSERAPI BOOL WINAPI DdeEnableCallback(DWORD,HCONV,UINT);
367WINUSERAPI BOOL WINAPI DdeFreeDataHandle(HDDEDATA);
368WINUSERAPI BOOL WINAPI DdeFreeStringHandle(DWORD,HSZ);
369WINUSERAPI DWORD WINAPI DdeGetData(HDDEDATA,LPBYTE,DWORD,DWORD);
370WINUSERAPI UINT WINAPI DdeGetLastError(DWORD);
371WINUSERAPI BOOL WINAPI DdeImpersonateClient(HCONV);
372WINUSERAPI UINT WINAPI DdeInitializeA(LPDWORD,PFNCALLBACK,DWORD,DWORD);
373WINUSERAPI UINT WINAPI DdeInitializeW(LPDWORD,PFNCALLBACK,DWORD,DWORD);
374#define DdeInitialize WINELIB_NAME_AW(DdeInitialize)
375WINUSERAPI BOOL WINAPI DdeKeepStringHandle(DWORD,HSZ);
376WINUSERAPI HDDEDATA WINAPI DdeNameService(DWORD,HSZ,HSZ,UINT);
377WINUSERAPI BOOL WINAPI DdePostAdvise(DWORD,HSZ,HSZ);
378WINUSERAPI UINT WINAPI DdeQueryConvInfo(HCONV,DWORD,PCONVINFO);
379WINUSERAPI HCONV WINAPI DdeQueryNextServer(HCONVLIST, HCONV);
380WINUSERAPI DWORD WINAPI DdeQueryStringA(DWORD, HSZ, LPSTR, DWORD, INT);
381WINUSERAPI DWORD WINAPI DdeQueryStringW(DWORD, HSZ, LPWSTR, DWORD, INT);
382#define DdeQueryString WINELIB_NAME_AW(DdeQueryString)
383WINUSERAPI HCONV WINAPI DdeReconnect(HCONV);
384WINUSERAPI BOOL WINAPI DdeSetUserHandle(HCONV,DWORD,DWORD);
385WINUSERAPI BOOL WINAPI DdeUnaccessData(HDDEDATA);
386WINUSERAPI BOOL WINAPI DdeUninitialize(DWORD);
387
388#ifdef __cplusplus
389} /* extern "C" */
390#endif /* defined(__cplusplus) */
391
392#endif /* __WINE_DDEML_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette