3 #pragma GCC system_header
9 #define EXPENTRY CALLBACK
10 #define CP_WINANSI 1004
11 #define CP_WINUNICODE 1200
12 #define XTYPF_NOBLOCK 2
13 #define XTYPF_NODATA 4
14 #define XTYPF_ACKREQ 8
15 #define XCLASS_MASK 0xFC00
16 #define XCLASS_BOOL 0x1000
17 #define XCLASS_DATA 0x2000
18 #define XCLASS_FLAGS 0x4000
19 #define XCLASS_NOTIFICATION 0x8000
21 #define XST_INCOMPLETE 1
22 #define XST_CONNECTED 2
26 #define XST_DATARCVD 6
27 #define XST_POKESENT 7
28 #define XST_POKEACKRCVD 8
29 #define XST_EXECSENT 9
30 #define XST_EXECACKRCVD 10
31 #define XST_ADVSENT 11
32 #define XST_UNADVSENT 12
33 #define XST_ADVACKRCVD 13
34 #define XST_UNADVACKRCVD 14
35 #define XST_ADVDATASENT 15
36 #define XST_ADVDATAACKRCVD 16
37 #define XTYP_ERROR (XCLASS_NOTIFICATION|XTYPF_NOBLOCK)
38 #define XTYP_ADVDATA (16|XCLASS_FLAGS)
39 #define XTYP_ADVREQ (32|XCLASS_DATA|XTYPF_NOBLOCK)
40 #define XTYP_ADVSTART (0x30|XCLASS_BOOL)
41 #define XTYP_ADVSTOP (0x0040|XCLASS_NOTIFICATION)
42 #define XTYP_EXECUTE (0x0050|XCLASS_FLAGS)
43 #define XTYP_CONNECT (0x0060|XCLASS_BOOL|XTYPF_NOBLOCK)
44 #define XTYP_CONNECT_CONFIRM (0x0070|XCLASS_NOTIFICATION|XTYPF_NOBLOCK)
45 #define XTYP_XACT_COMPLETE (0x0080|XCLASS_NOTIFICATION)
46 #define XTYP_POKE (0x0090|XCLASS_FLAGS)
47 #define XTYP_REGISTER (0x00A0|XCLASS_NOTIFICATION|XTYPF_NOBLOCK)
48 #define XTYP_REQUEST (0x00B0|XCLASS_DATA)
49 #define XTYP_DISCONNECT (0x00C0|XCLASS_NOTIFICATION|XTYPF_NOBLOCK)
50 #define XTYP_UNREGISTER (0x00D0|XCLASS_NOTIFICATION|XTYPF_NOBLOCK)
51 #define XTYP_WILDCONNECT (0x00E0|XCLASS_DATA|XTYPF_NOBLOCK)
52 #define XTYP_MASK 0xF0
54 #define TIMEOUT_ASYNC 0xFFFFFFFF
55 #define QID_SYNC 0xFFFFFFFF
56 #define ST_CONNECTED 1
61 #define ST_TERMINATED 32
63 #define ST_BLOCKNEXT 128
65 #define CADV_LATEACK 0xFFFF
66 #define DMLERR_NO_ERROR 0
67 #define DMLERR_FIRST 0x4000
68 #define DMLERR_ADVACKTIMEOUT 0x4000
69 #define DMLERR_BUSY 0x4001
70 #define DMLERR_DATAACKTIMEOUT 0x4002
71 #define DMLERR_DLL_NOT_INITIALIZED 0x4003
72 #define DMLERR_DLL_USAGE 0x4004
73 #define DMLERR_EXECACKTIMEOUT 0x4005
74 #define DMLERR_INVALIDPARAMETER 0x4006
75 #define DMLERR_LOW_MEMORY 0x4007
76 #define DMLERR_MEMORY_ERROR 0x4008
77 #define DMLERR_NOTPROCESSED 0x4009
78 #define DMLERR_NO_CONV_ESTABLISHED 0x400a
79 #define DMLERR_POKEACKTIMEOUT 0x400b
80 #define DMLERR_POSTMSG_FAILED 0x400c
81 #define DMLERR_REENTRANCY 0x400d
82 #define DMLERR_SERVER_DIED 0x400e
83 #define DMLERR_SYS_ERROR 0x400f
84 #define DMLERR_UNADVACKTIMEOUT 0x4010
85 #define DMLERR_UNFOUND_QUEUE_ID 0x4011
86 #define DMLERR_LAST 0x4011
87 #define DDE_FACK 0x8000
88 #define DDE_FBUSY 0x4000
89 #define DDE_FDEFERUPD 0x4000
90 #define DDE_FACKREQ 0x8000
91 #define DDE_FRELEASE 0x2000
92 #define DDE_FREQUESTED 0x1000
93 #define DDE_FAPPSTATUS 0x00ff
94 #define DDE_FNOTPROCESSED 0
95 #define DDE_FACKRESERVED (~(DDE_FACK|DDE_FBUSY|DDE_FAPPSTATUS))
96 #define DDE_FADVRESERVED (~(DDE_FACKREQ|DDE_FDEFERUPD))
97 #define DDE_FDATRESERVED (~(DDE_FACKREQ|DDE_FRELEASE|DDE_FREQUESTED))
98 #define DDE_FPOKRESERVED (~DDE_FRELEASE)
99 #define MSGF_DDEMGR 0x8001
100 #define CBR_BLOCK ((HDDEDATA)0xffffffff)
101 #define CBF_FAIL_SELFCONNECTIONS 0x1000
102 #define CBF_FAIL_CONNECTIONS 0x2000
103 #define CBF_FAIL_ADVISES 0x4000
104 #define CBF_FAIL_EXECUTES 0x8000
105 #define CBF_FAIL_POKES 0x10000
106 #define CBF_FAIL_REQUESTS 0x20000
107 #define CBF_FAIL_ALLSVRXACTIONS 0x3f000
108 #define CBF_SKIP_CONNECT_CONFIRMS 0x40000
109 #define CBF_SKIP_REGISTRATIONS 0x80000
110 #define CBF_SKIP_UNREGISTRATIONS 0x100000
111 #define CBF_SKIP_DISCONNECTS 0x200000
112 #define CBF_SKIP_ALLNOTIFICATIONS 0x3c0000
113 #define APPCMD_CLIENTONLY 0x10L
114 #define APPCMD_FILTERINITS 0x20L
115 #define APPCMD_MASK 0xFF0L
116 #define APPCLASS_STANDARD 0
117 #define APPCLASS_MASK 0xFL
118 #define EC_ENABLEALL 0
119 #define EC_ENABLEONE ST_BLOCKNEXT
120 #define EC_DISABLE ST_BLOCKED
121 #define EC_QUERYWAITING 2
122 #define DNS_REGISTER 1
123 #define DNS_UNREGISTER 2
124 #define DNS_FILTERON 4
125 #define DNS_FILTEROFF 8
126 #define HDATA_APPOWNED 1
127 #define MAX_MONITORS 4
128 #define APPCLASS_MONITOR 1L
129 #define XTYP_MONITOR (XCLASS_NOTIFICATION|XTYPF_NOBLOCK|0xF0)
130 #define MF_HSZ_INFO 0x1000000
131 #define MF_SENDMSGS 0x2000000
132 #define MF_POSTMSGS 0x4000000
133 #define MF_CALLBACKS 0x8000000
134 #define MF_ERRORS 0x10000000
135 #define MF_LINKS 0x20000000
136 #define MF_CONV 0x40000000
137 #define MF_MASK 0xFF000000
143 DECLARE_HANDLE(HCONVLIST);
144 DECLARE_HANDLE(HCONV);
146 DECLARE_HANDLE(HDDEDATA);
147 typedef HDDEDATA CALLBACK FNCALLBACK(UINT,UINT,HCONV,HSZ,HSZ,HDDEDATA,DWORD,DWORD);
148 typedef HDDEDATA(CALLBACK *PFNCALLBACK)(UINT,UINT,HCONV,HSZ,HSZ,HDDEDATA,DWORD,DWORD);
149 typedef struct tagHSZPAIR {
152 } HSZPAIR, *PHSZPAIR;
153 typedef struct tagCONVCONTEXT {
160 SECURITY_QUALITY_OF_SERVICE qos;
161 } CONVCONTEXT,*PCONVCONTEXT;
162 typedef struct tagCONVINFO {
176 CONVCONTEXT ConvCtxt;
179 } CONVINFO,*PCONVINFO;
180 typedef struct tagDDEML_MSG_HOOK_DATA {
185 } DDEML_MSG_HOOK_DATA;
186 typedef struct tagMONHSZSTRUCT {
193 } MONHSZSTRUCT, *PMONHSZSTRUCT;
194 typedef struct tagMONLINKSTRUCT {
207 } MONLINKSTRUCT, *PMONLINKSTRUCT;
208 typedef struct tagMONCONVSTRUCT {
217 } MONCONVSTRUCT, *PMONCONVSTRUCT;
218 typedef struct tagMONCBSTRUCT {
234 } MONCBSTRUCT, *PMONCBSTRUCT;
235 typedef struct tagMONERRSTRUCT {
240 } MONERRSTRUCT, *PMONERRSTRUCT;
241 typedef struct tagMONMSGSTRUCT {
249 DDEML_MSG_HOOK_DATA dmhd;
250 } MONMSGSTRUCT, *PMONMSGSTRUCT;
252 BOOL WINAPI DdeAbandonTransaction(DWORD,HCONV,DWORD);
253 PBYTE WINAPI DdeAccessData(HDDEDATA,PDWORD);
254 HDDEDATA WINAPI DdeAddData(HDDEDATA,PBYTE,DWORD,DWORD);
255 HDDEDATA WINAPI DdeClientTransaction(PBYTE,DWORD,HCONV,HSZ,UINT,UINT,DWORD,PDWORD);
256 int WINAPI DdeCmpStringHandles(HSZ,HSZ);
257 HCONV WINAPI DdeConnect(DWORD,HSZ,HSZ,PCONVCONTEXT);
258 HCONVLIST WINAPI DdeConnectList(DWORD,HSZ,HSZ,HCONVLIST,PCONVCONTEXT);
259 HDDEDATA WINAPI DdeCreateDataHandle(DWORD,PBYTE,DWORD,DWORD,HSZ,UINT,UINT);
260 HSZ WINAPI DdeCreateStringHandleA(DWORD,LPCSTR,int);
261 HSZ WINAPI DdeCreateStringHandleW(DWORD,LPCWSTR,int);
262 BOOL WINAPI DdeDisconnect(HCONV);
263 BOOL WINAPI DdeDisconnectList(HCONVLIST);
264 BOOL WINAPI DdeEnableCallback(DWORD,HCONV,UINT);
265 BOOL WINAPI DdeFreeDataHandle(HDDEDATA);
266 BOOL WINAPI DdeFreeStringHandle(DWORD,HSZ);
267 DWORD WINAPI DdeGetData(HDDEDATA,PBYTE,DWORD,DWORD);
268 UINT WINAPI DdeGetLastError(DWORD);
269 BOOL WINAPI DdeImpersonateClient(HCONV);
270 UINT WINAPI DdeInitializeA(PDWORD,PFNCALLBACK,DWORD,DWORD);
271 UINT WINAPI DdeInitializeW(PDWORD,PFNCALLBACK,DWORD,DWORD);
272 BOOL WINAPI DdeKeepStringHandle(DWORD,HSZ);
273 HDDEDATA WINAPI DdeNameService(DWORD,HSZ,HSZ,UINT);
274 BOOL WINAPI DdePostAdvise(DWORD,HSZ,HSZ);
275 UINT WINAPI DdeQueryConvInfo(HCONV,DWORD,PCONVINFO);
276 HCONV WINAPI DdeQueryNextServer(HCONVLIST,HCONV);
277 DWORD WINAPI DdeQueryStringA(DWORD,HSZ,LPSTR,DWORD,int);
278 DWORD WINAPI DdeQueryStringW(DWORD,HSZ,LPWSTR,DWORD,int);
279 HCONV WINAPI DdeReconnect(HCONV);
280 BOOL WINAPI DdeSetUserHandle(HCONV,DWORD,DWORD);
281 BOOL WINAPI DdeUnaccessData(HDDEDATA);
282 BOOL WINAPI DdeUninitialize(DWORD);
285 #define SZDDESYS_TOPIC L"System"
286 #define SZDDESYS_ITEM_TOPICS L"Topics"
287 #define SZDDESYS_ITEM_SYSITEMS L"SysItems"
288 #define SZDDESYS_ITEM_RTNMSG L"ReturnMessage"
289 #define SZDDESYS_ITEM_STATUS L"Status"
290 #define SZDDESYS_ITEM_FORMATS L"Formats"
291 #define SZDDESYS_ITEM_HELP L"Help"
292 #define SZDDE_ITEM_ITEMLIST L"TopicItemList"
293 #define DdeCreateStringHandle DdeCreateStringHandleW
294 #define DdeInitialize DdeInitializeW
295 #define DdeQueryString DdeQueryStringW
297 #define SZDDESYS_TOPIC "System"
298 #define SZDDESYS_ITEM_TOPICS "Topics"
299 #define SZDDESYS_ITEM_SYSITEMS "SysItems"
300 #define SZDDESYS_ITEM_RTNMSG "ReturnMessage"
301 #define SZDDESYS_ITEM_STATUS "Status"
302 #define SZDDESYS_ITEM_FORMATS "Formats"
303 #define SZDDESYS_ITEM_HELP "Help"
304 #define SZDDE_ITEM_ITEMLIST "TopicItemList"
305 #define DdeCreateStringHandle DdeCreateStringHandleA
306 #define DdeInitialize DdeInitializeA
307 #define DdeQueryString DdeQueryStringA
312 #endif /* _DDEML_H */