32#define CP_WINANSI 1004
33#define CP_WINUNICODE 1200
38#define MSGF_DDEMGR 0x8001
40#define QID_SYNC 0xFFFFFFFF
45#define EXPENTRY CALLBACK
47#define SZDDESYS_TOPIC TEXT("System")
48#define SZDDESYS_ITEM_TOPICS TEXT("Topics")
49#define SZDDESYS_ITEM_SYSITEMS TEXT("SysItems")
50#define SZDDESYS_ITEM_RTNMSG TEXT("ReturnMessage")
51#define SZDDESYS_ITEM_STATUS TEXT("Status")
52#define SZDDESYS_ITEM_FORMATS TEXT("Formats")
53#define SZDDESYS_ITEM_HELP TEXT("Help")
54#define SZDDE_ITEM_ITEMLIST TEXT("TopicItemList")
63#define XST_INCOMPLETE 1
64#define XST_CONNECTED 2
70#define XST_POKEACKRCVD 8
72#define XST_EXECACKRCVD 10
74#define XST_UNADVSENT 12
75#define XST_ADVACKRCVD 13
76#define XST_UNADVACKRCVD 14
77#define XST_ADVDATASENT 15
78#define XST_ADVDATAACKRCVD 16
80#define ST_CONNECTED 0x0001
81#define ST_ADVISE 0x0002
82#define ST_ISLOCAL 0x0004
83#define ST_BLOCKED 0x0008
84#define ST_CLIENT 0x0010
85#define ST_TERMINATED 0x0020
86#define ST_INLIST 0x0040
87#define ST_BLOCKNEXT 0x0080
88#define ST_ISSELF 0x0100
95#define EC_ENABLEONE ST_BLOCKNEXT
96#define EC_DISABLE ST_BLOCKED
97#define EC_QUERYWAITING 2
103#define CBF_FAIL_SELFCONNECTIONS 0x00001000
104#define CBF_FAIL_CONNECTIONS 0x00002000
105#define CBF_FAIL_ADVISES 0x00004000
106#define CBF_FAIL_EXECUTES 0x00008000
107#define CBF_FAIL_POKES 0x00010000
108#define CBF_FAIL_REQUESTS 0x00020000
109#define CBF_FAIL_ALLSVRXACTIONS 0x0003f000
111#define CBF_SKIP_CONNECT_CONFIRMS 0x00040000
112#define CBF_SKIP_REGISTRATIONS 0x00080000
113#define CBF_SKIP_UNREGISTRATIONS 0x00100000
114#define CBF_SKIP_DISCONNECTS 0x00200000
115#define CBF_SKIP_ALLNOTIFICATIONS 0x003c0000
117#define CBR_BLOCK ((HDDEDATA)(LONG_PTR)-1)
122#define APPCMD_CLIENTONLY 0x00000010L
123#define APPCMD_FILTERINITS 0x00000020L
124#define APPCMD_MASK 0x00000FF0L
130#define APPCLASS_STANDARD 0x00000000L
131#define APPCLASS_MONITOR 0x00000001L
132#define APPCLASS_MASK 0x0000000FL
138#define MF_HSZ_INFO 0x01000000
139#define MF_SENDMSGS 0x02000000
140#define MF_POSTMSGS 0x04000000
141#define MF_CALLBACKS 0x08000000
142#define MF_ERRORS 0x10000000
143#define MF_LINKS 0x20000000
144#define MF_CONV 0x40000000
146#define MF_MASK 0xFF000000
152#define DNS_REGISTER 0x0001
153#define DNS_UNREGISTER 0x0002
154#define DNS_FILTERON 0x0004
155#define DNS_FILTEROFF 0x0008
170#define XTYPF_NOBLOCK 0x0002
171#define XTYPF_NODATA 0x0004
172#define XTYPF_ACKREQ 0x0008
174#define XCLASS_MASK 0xFC00
175#define XCLASS_BOOL 0x1000
176#define XCLASS_DATA 0x2000
177#define XCLASS_FLAGS 0x4000
178#define XCLASS_NOTIFICATION 0x8000
180#define XTYP_ERROR (0x0000 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
181#define XTYP_ADVDATA (0x0010 | XCLASS_FLAGS)
182#define XTYP_ADVREQ (0x0020 | XCLASS_DATA | XTYPF_NOBLOCK)
183#define XTYP_ADVSTART (0x0030 | XCLASS_BOOL)
184#define XTYP_ADVSTOP (0x0040 | XCLASS_NOTIFICATION)
185#define XTYP_EXECUTE (0x0050 | XCLASS_FLAGS)
186#define XTYP_CONNECT (0x0060 | XCLASS_BOOL | XTYPF_NOBLOCK)
187#define XTYP_CONNECT_CONFIRM (0x0070 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
188#define XTYP_XACT_COMPLETE (0x0080 | XCLASS_NOTIFICATION )
189#define XTYP_POKE (0x0090 | XCLASS_FLAGS)
190#define XTYP_REGISTER (0x00A0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK )
191#define XTYP_REQUEST (0x00B0 | XCLASS_DATA )
192#define XTYP_DISCONNECT (0x00C0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK )
193#define XTYP_UNREGISTER (0x00D0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK )
194#define XTYP_WILDCONNECT (0x00E0 | XCLASS_DATA | XTYPF_NOBLOCK)
195#define XTYP_MONITOR (0x00F0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
197#define XTYP_MASK 0x00F0
200#define TIMEOUT_ASYNC 0xFFFFFFFF
202#define CADV_LATEACK 0xFFFF
216#define DDE_FACK 0x8000
217#define DDE_FBUSY 0x4000
218#define DDE_FDEFERUPD 0x4000
219#define DDE_FACKREQ 0x8000
220#define DDE_FRELEASE 0x2000
221#define DDE_FREQUESTED 0x1000
222#define DDE_FAPPSTATUS 0x00FF
223#define DDE_FNOTPROCESSED 0x0000
225#define DDE_FACKRESERVED (~(DDE_FACK | DDE_FBUSY | DDE_FAPPSTATUS))
226#define DDE_FADVRESERVED (~(DDE_FACKREQ | DDE_FDEFERUPD))
227#define DDE_FDATRESERVED (~(DDE_FACKREQ | DDE_FRELEASE | DDE_FREQUESTED))
228#define DDE_FPOKRESERVED (~(DDE_FRELEASE))
242#define DMLERR_NO_ERROR 0
244#define DMLERR_FIRST 0x4000
246#define DMLERR_ADVACKTIMEOUT 0x4000
247#define DMLERR_BUSY 0x4001
248#define DMLERR_DATAACKTIMEOUT 0x4002
249#define DMLERR_DLL_NOT_INITIALIZED 0x4003
250#define DMLERR_DLL_USAGE 0x4004
251#define DMLERR_EXECACKTIMEOUT 0x4005
252#define DMLERR_INVALIDPARAMETER 0x4006
253#define DMLERR_LOW_MEMORY 0x4007
254#define DMLERR_MEMORY_ERROR 0x4008
255#define DMLERR_NOTPROCESSED 0x4009
256#define DMLERR_NO_CONV_ESTABLISHED 0x400a
257#define DMLERR_POKEACKTIMEOUT 0x400b
258#define DMLERR_POSTMSG_FAILED 0x400c
259#define DMLERR_REENTRANCY 0x400d
260#define DMLERR_SERVER_DIED 0x400e
261#define DMLERR_SYS_ERROR 0x400f
262#define DMLERR_UNADVACKTIMEOUT 0x4010
263#define DMLERR_UNFOUND_QUEUE_ID 0x4011
265#define DMLERR_LAST 0x4011
267#define HDATA_APPOWNED 0x0001
340#define DdeInitialize WINELIB_NAME_AW(DdeInitialize)
346#define DdeQueryString WINELIB_NAME_AW(DdeQueryString)
354#define DdeCreateStringHandle WINELIB_NAME_AW(DdeCreateStringHandle)
HDDEDATA WINAPI DdeClientTransaction(LPBYTE, DWORD, HCONV, HSZ, UINT, UINT, DWORD, LPDWORD)
HSZ WINAPI DdeCreateStringHandleA(DWORD, LPCSTR, INT)
HCONVLIST WINAPI DdeConnectList(DWORD, HSZ, HSZ, HCONVLIST, PCONVCONTEXT)
BOOL WINAPI DdeSetUserHandle(HCONV, DWORD, DWORD)
struct tagHSZPAIR * PHSZPAIR
UINT WINAPI DdeQueryConvInfo(HCONV, DWORD, PCONVINFO)
BOOL WINAPI DdeImpersonateClient(HCONV)
HDDEDATA WINAPI DdeAddData(HDDEDATA, LPBYTE, DWORD, DWORD)
struct tagCONVCONTEXT * PCONVCONTEXT
BOOL WINAPI DdeAbandonTransaction(DWORD idInst, HCONV hConv, DWORD idTransaction)
HDDEDATA WINAPI DdeCreateDataHandle(DWORD, LPBYTE, DWORD, DWORD, HSZ, UINT, UINT)
INT WINAPI DdeCmpStringHandles(HSZ, HSZ)
struct tagCONVCONTEXT CONVCONTEXT
BOOL WINAPI DdeUninitialize(DWORD)
BOOL WINAPI DdeKeepStringHandle(DWORD, HSZ)
HCONV WINAPI DdeQueryNextServer(HCONVLIST, HCONV)
UINT WINAPI DdeInitializeW(LPDWORD, PFNCALLBACK, DWORD, DWORD)
HCONV WINAPI DdeConnect(DWORD, HSZ, HSZ, PCONVCONTEXT)
UINT WINAPI DdeGetLastError(DWORD)
HSZ WINAPI DdeCreateStringHandleW(DWORD, LPCWSTR, INT)
DWORD WINAPI DdeQueryStringA(DWORD, HSZ, LPSTR, DWORD, INT)
BOOL WINAPI DdeDisconnectList(HCONVLIST)
DWORD WINAPI DdeQueryStringW(DWORD, HSZ, LPWSTR, DWORD, INT)
BOOL WINAPI DdePostAdvise(DWORD, HSZ, HSZ)
BOOL WINAPI DdeFreeStringHandle(DWORD, HSZ)
HDDEDATA(CALLBACK * PFNCALLBACK)(UINT, UINT, HCONV, HSZ, HSZ, HDDEDATA, ULONG_PTR, ULONG_PTR)
BOOL WINAPI DdeDisconnect(HCONV)
HDDEDATA WINAPI DdeNameService(DWORD, HSZ, HSZ, UINT)
BOOL WINAPI DdeUnaccessData(HDDEDATA)
struct tagCONVINFO * PCONVINFO
struct tagCONVINFO CONVINFO
LPBYTE WINAPI DdeAccessData(HDDEDATA, LPDWORD)
HCONV WINAPI DdeReconnect(HCONV)
struct tagHSZPAIR HSZPAIR
BOOL WINAPI DdeEnableCallback(DWORD, HCONV, UINT)
BOOL WINAPI DdeFreeDataHandle(HDDEDATA)
DWORD WINAPI DdeGetData(HDDEDATA, LPBYTE, DWORD, DWORD)
UINT WINAPI DdeInitializeA(LPDWORD, PFNCALLBACK, DWORD, DWORD)
#define DECLARE_HANDLE(name)