annotate win32/ddeml.d @ 1:4a9dcbd9e54f

-files of 0.13 beta -fixes so that it now compiles with the current dmd version
author marton@basel.hu
date Tue, 05 Apr 2011 20:44:01 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
1 /***********************************************************************\
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
2 * ddeml.d *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
3 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
4 * Windows API header module *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
5 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
6 * Translated from MinGW Windows headers *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
7 * by Stewart Gordon *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
8 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
9 * Placed into public domain *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
10 \***********************************************************************/
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
11 module win32.ddeml;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
12 pragma(lib, "user32.lib");
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
13
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
14 private import win32.basetsd, win32.windef, win32.winnt;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
15
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
16 enum : int {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
17 CP_WINANSI = 1004,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
18 CP_WINUNICODE = 1200
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
19 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
20
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
21 enum : UINT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
22 XTYPF_NOBLOCK = 2,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
23 XTYPF_NODATA = 4,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
24 XTYPF_ACKREQ = 8
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
25 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
26
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
27 enum : UINT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
28 XCLASS_MASK = 0xFC00,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
29 XCLASS_BOOL = 0x1000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
30 XCLASS_DATA = 0x2000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
31 XCLASS_FLAGS = 0x4000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
32 XCLASS_NOTIFICATION = 0x8000
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
33 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
34
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
35 enum : UINT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
36 XST_NULL,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
37 XST_INCOMPLETE,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
38 XST_CONNECTED,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
39 XST_INIT1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
40 XST_INIT2,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
41 XST_REQSENT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
42 XST_DATARCVD,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
43 XST_POKESENT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
44 XST_POKEACKRCVD,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
45 XST_EXECSENT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
46 XST_EXECACKRCVD,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
47 XST_ADVSENT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
48 XST_UNADVSENT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
49 XST_ADVACKRCVD,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
50 XST_UNADVACKRCVD,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
51 XST_ADVDATASENT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
52 XST_ADVDATAACKRCVD // = 16
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
53 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
54
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
55 enum : UINT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
56 XTYP_ERROR = XCLASS_NOTIFICATION | XTYPF_NOBLOCK,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
57 XTYP_ADVDATA = 0x0010 | XCLASS_FLAGS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
58 XTYP_ADVREQ = 0x0020 | XCLASS_DATA | XTYPF_NOBLOCK,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
59 XTYP_ADVSTART = 0x0030 | XCLASS_BOOL,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
60 XTYP_ADVSTOP = 0x0040 | XCLASS_NOTIFICATION,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
61 XTYP_EXECUTE = 0x0050 | XCLASS_FLAGS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
62 XTYP_CONNECT = 0x0060 | XCLASS_BOOL | XTYPF_NOBLOCK,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
63 XTYP_CONNECT_CONFIRM = 0x0070 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
64 XTYP_XACT_COMPLETE = 0x0080 | XCLASS_NOTIFICATION,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
65 XTYP_POKE = 0x0090 | XCLASS_FLAGS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
66 XTYP_REGISTER = 0x00A0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
67 XTYP_REQUEST = 0x00B0 | XCLASS_DATA,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
68 XTYP_DISCONNECT = 0x00C0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
69 XTYP_UNREGISTER = 0x00D0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
70 XTYP_WILDCONNECT = 0x00E0 | XCLASS_DATA | XTYPF_NOBLOCK,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
71 XTYP_MONITOR = 0X00F0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
72 XTYP_MASK = 0x00F0,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
73 XTYP_SHIFT = 4
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
74 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
75
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
76 /+
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
77 #define TIMEOUT_ASYNC 0xFFFFFFFF
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
78 #define QID_SYNC 0xFFFFFFFF
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
79 +/
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
80
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
81 enum : UINT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
82 ST_CONNECTED = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
83 ST_ADVISE = 2,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
84 ST_ISLOCAL = 4,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
85 ST_BLOCKED = 8,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
86 ST_CLIENT = 16,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
87 ST_TERMINATED = 32,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
88 ST_INLIST = 64,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
89 ST_BLOCKNEXT = 128,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
90 ST_ISSELF = 256
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
91 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
92
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
93 /+
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
94 #define CADV_LATEACK 0xFFFF
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
95 +/
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
96
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
97 enum : UINT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
98 DMLERR_NO_ERROR = 0,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
99 DMLERR_FIRST = 0x4000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
100 DMLERR_ADVACKTIMEOUT = DMLERR_FIRST,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
101 DMLERR_BUSY,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
102 DMLERR_DATAACKTIMEOUT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
103 DMLERR_DLL_NOT_INITIALIZED,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
104 DMLERR_DLL_USAGE,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
105 DMLERR_EXECACKTIMEOUT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
106 DMLERR_INVALIDPARAMETER,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
107 DMLERR_LOW_MEMORY,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
108 DMLERR_MEMORY_ERROR,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
109 DMLERR_NOTPROCESSED,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
110 DMLERR_NO_CONV_ESTABLISHED,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
111 DMLERR_POKEACKTIMEOUT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
112 DMLERR_POSTMSG_FAILED,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
113 DMLERR_REENTRANCY,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
114 DMLERR_SERVER_DIED,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
115 DMLERR_SYS_ERROR,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
116 DMLERR_UNADVACKTIMEOUT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
117 DMLERR_UNFOUND_QUEUE_ID, // = 0x4011
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
118 DMLERR_LAST = DMLERR_UNFOUND_QUEUE_ID
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
119 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
120
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
121 /+
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
122 #define DDE_FACK 0x8000
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
123 #define DDE_FBUSY 0x4000
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
124 #define DDE_FDEFERUPD 0x4000
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
125 #define DDE_FACKREQ 0x8000
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
126 #define DDE_FRELEASE 0x2000
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
127 #define DDE_FREQUESTED 0x1000
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
128 #define DDE_FAPPSTATUS 0x00ff
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
129 #define DDE_FNOTPROCESSED 0
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
130 #define DDE_FACKRESERVED (~(DDE_FACK|DDE_FBUSY|DDE_FAPPSTATUS))
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
131 #define DDE_FADVRESERVED (~(DDE_FACKREQ|DDE_FDEFERUPD))
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
132 #define DDE_FDATRESERVED (~(DDE_FACKREQ|DDE_FRELEASE|DDE_FREQUESTED))
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
133 #define DDE_FPOKRESERVED (~DDE_FRELEASE)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
134 #define MSGF_DDEMGR 0x8001
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
135 #define CBR_BLOCK ((HDDEDATA)0xffffffff)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
136 +/
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
137
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
138 const DWORD
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
139 APPCLASS_STANDARD = 0,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
140 APPCLASS_MONITOR = 0x00000001,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
141 APPCLASS_MASK = 0x0000000F,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
142 APPCMD_CLIENTONLY = 0x00000010,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
143 APPCMD_FILTERINITS = 0x00000020,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
144 APPCMD_MASK = 0x00000FF0,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
145 CBF_FAIL_SELFCONNECTIONS = 0x00001000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
146 CBF_FAIL_CONNECTIONS = 0x00002000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
147 CBF_FAIL_ADVISES = 0x00004000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
148 CBF_FAIL_EXECUTES = 0x00008000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
149 CBF_FAIL_POKES = 0x00010000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
150 CBF_FAIL_REQUESTS = 0x00020000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
151 CBF_FAIL_ALLSVRXACTIONS = 0x0003f000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
152 CBF_SKIP_CONNECT_CONFIRMS = 0x00040000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
153 CBF_SKIP_REGISTRATIONS = 0x00080000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
154 CBF_SKIP_UNREGISTRATIONS = 0x00100000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
155 CBF_SKIP_DISCONNECTS = 0x00200000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
156 CBF_SKIP_ALLNOTIFICATIONS = 0x003c0000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
157 MF_HSZ_INFO = 0x01000000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
158 MF_SENDMSGS = 0x02000000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
159 MF_POSTMSGS = 0x04000000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
160 MF_CALLBACKS = 0x08000000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
161 MF_ERRORS = 0x10000000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
162 MF_LINKS = 0x20000000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
163 MF_CONV = 0x40000000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
164 MF_MASK = 0xFF000000;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
165
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
166 enum : UINT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
167 EC_ENABLEALL = 0,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
168 EC_ENABLEONE = ST_BLOCKNEXT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
169 EC_DISABLE = ST_BLOCKED,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
170 EC_QUERYWAITING = 2
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
171 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
172
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
173 enum : UINT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
174 DNS_REGISTER = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
175 DNS_UNREGISTER = 2,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
176 DNS_FILTERON = 4,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
177 DNS_FILTEROFF = 8
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
178 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
179
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
180 /+
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
181 #define HDATA_APPOWNED 1
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
182 #define MAX_MONITORS 4
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
183 +/
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
184
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
185 enum : int {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
186 MH_CREATE = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
187 MH_KEEP = 2,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
188 MH_DELETE = 3,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
189 MH_CLEANUP = 4
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
190 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
191
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
192 alias HANDLE HCONVLIST, HCONV, HSZ, HDDEDATA;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
193
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
194 extern (Windows) alias HDDEDATA
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
195 function(UINT, UINT, HCONV, HSZ, HSZ, HDDEDATA, DWORD, DWORD) PFNCALLBACK;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
196
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
197 struct HSZPAIR {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
198 HSZ hszSvc;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
199 HSZ hszTopic;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
200 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
201 alias HSZPAIR* PHSZPAIR;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
202
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
203 struct CONVCONTEXT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
204 UINT cb = CONVCONTEXT.sizeof;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
205 UINT wFlags;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
206 UINT wCountryID;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
207 int iCodePage;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
208 DWORD dwLangID;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
209 DWORD dwSecurity;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
210 SECURITY_QUALITY_OF_SERVICE qos;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
211 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
212 alias CONVCONTEXT* PCONVCONTEXT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
213
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
214 struct CONVINFO {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
215 DWORD cb = CONVINFO.sizeof;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
216 DWORD hUser;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
217 HCONV hConvPartner;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
218 HSZ hszSvcPartner;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
219 HSZ hszServiceReq;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
220 HSZ hszTopic;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
221 HSZ hszItem;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
222 UINT wFmt;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
223 UINT wType;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
224 UINT wStatus;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
225 UINT wConvst;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
226 UINT wLastError;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
227 HCONVLIST hConvList;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
228 CONVCONTEXT ConvCtxt;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
229 HWND hwnd;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
230 HWND hwndPartner;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
231 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
232 alias CONVINFO* PCONVINFO;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
233
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
234 struct DDEML_MSG_HOOK_DATA {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
235 UINT uiLo;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
236 UINT uiHi;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
237 DWORD cbData;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
238 DWORD[8] Data;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
239 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
240
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
241 struct MONHSZSTRUCT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
242 UINT cb = MONHSZSTRUCT.sizeof;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
243 int fsAction;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
244 DWORD dwTime;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
245 HSZ hsz;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
246 HANDLE hTask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
247 TCHAR[1] _str;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
248
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
249 TCHAR* str() { return _str.ptr; }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
250 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
251 alias MONHSZSTRUCT* PMONHSZSTRUCT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
252
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
253 struct MONLINKSTRUCT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
254 UINT cb = MONLINKSTRUCT.sizeof;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
255 DWORD dwTime;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
256 HANDLE hTask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
257 BOOL fEstablished;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
258 BOOL fNoData;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
259 HSZ hszSvc;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
260 HSZ hszTopic;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
261 HSZ hszItem;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
262 UINT wFmt;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
263 BOOL fServer;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
264 HCONV hConvServer;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
265 HCONV hConvClient;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
266 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
267 alias MONLINKSTRUCT* PMONLINKSTRUCT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
268
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
269 struct MONCONVSTRUCT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
270 UINT cb = MONCONVSTRUCT.sizeof;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
271 BOOL fConnect;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
272 DWORD dwTime;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
273 HANDLE hTask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
274 HSZ hszSvc;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
275 HSZ hszTopic;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
276 HCONV hConvClient;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
277 HCONV hConvServer;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
278 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
279 alias MONCONVSTRUCT* PMONCONVSTRUCT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
280
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
281 struct MONCBSTRUCT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
282 UINT cb = MONCBSTRUCT.sizeof;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
283 DWORD dwTime;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
284 HANDLE hTask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
285 DWORD dwRet;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
286 UINT wType;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
287 UINT wFmt;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
288 HCONV hConv;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
289 HSZ hsz1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
290 HSZ hsz2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
291 HDDEDATA hData;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
292 ULONG_PTR dwData1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
293 ULONG_PTR dwData2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
294 CONVCONTEXT cc;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
295 DWORD cbData;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
296 DWORD[8] Data;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
297 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
298 alias MONCBSTRUCT* PMONCBSTRUCT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
299
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
300 struct MONERRSTRUCT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
301 UINT cb = MONERRSTRUCT.sizeof;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
302 UINT wLastError;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
303 DWORD dwTime;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
304 HANDLE hTask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
305 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
306 alias MONERRSTRUCT* PMONERRSTRUCT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
307
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
308 struct MONMSGSTRUCT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
309 UINT cb = MONMSGSTRUCT.sizeof;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
310 HWND hwndTo;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
311 DWORD dwTime;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
312 HANDLE hTask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
313 UINT wMsg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
314 WPARAM wParam;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
315 LPARAM lParam;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
316 DDEML_MSG_HOOK_DATA dmhd;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
317 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
318 alias MONMSGSTRUCT* PMONMSGSTRUCT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
319
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
320 extern (Windows) {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
321 BOOL DdeAbandonTransaction(DWORD, HCONV, DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
322 PBYTE DdeAccessData(HDDEDATA, PDWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
323 HDDEDATA DdeAddData(HDDEDATA, PBYTE, DWORD, DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
324 HDDEDATA DdeClientTransaction(PBYTE, DWORD, HCONV, HSZ, UINT, UINT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
325 DWORD, PDWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
326 int DdeCmpStringHandles(HSZ, HSZ);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
327 HCONV DdeConnect(DWORD, HSZ, HSZ, PCONVCONTEXT);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
328 HCONVLIST DdeConnectList(DWORD, HSZ, HSZ, HCONVLIST, PCONVCONTEXT);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
329 HDDEDATA DdeCreateDataHandle(DWORD, PBYTE, DWORD, DWORD, HSZ, UINT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
330 UINT);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
331 HSZ DdeCreateStringHandleA(DWORD, LPSTR, int);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
332 HSZ DdeCreateStringHandleW(DWORD, LPWSTR, int);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
333 BOOL DdeDisconnect(HCONV);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
334 BOOL DdeDisconnectList(HCONVLIST);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
335 BOOL DdeEnableCallback(DWORD, HCONV, UINT);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
336 BOOL DdeFreeDataHandle(HDDEDATA);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
337 BOOL DdeFreeStringHandle(DWORD, HSZ);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
338 DWORD DdeGetData(HDDEDATA, PBYTE, DWORD, DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
339 UINT DdeGetLastError(DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
340 BOOL DdeImpersonateClient(HCONV);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
341 UINT DdeInitializeA(PDWORD, PFNCALLBACK, DWORD, DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
342 UINT DdeInitializeW(PDWORD, PFNCALLBACK, DWORD, DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
343 BOOL DdeKeepStringHandle(DWORD, HSZ);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
344 HDDEDATA DdeNameService(DWORD, HSZ, HSZ, UINT);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
345 BOOL DdePostAdvise(DWORD, HSZ, HSZ);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
346 UINT DdeQueryConvInfo(HCONV, DWORD, PCONVINFO);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
347 HCONV DdeQueryNextServer(HCONVLIST, HCONV);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
348 DWORD DdeQueryStringA(DWORD, HSZ, LPSTR, DWORD, int);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
349 DWORD DdeQueryStringW(DWORD, HSZ, LPWSTR, DWORD, int);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
350 HCONV DdeReconnect(HCONV);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
351 BOOL DdeSetUserHandle(HCONV, DWORD, DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
352 BOOL DdeUnaccessData(HDDEDATA);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
353 BOOL DdeUninitialize(DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
354 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
355
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
356 const TCHAR[]
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
357 SZDDESYS_TOPIC = "System",
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
358 SZDDESYS_ITEM_TOPICS = "Topics",
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
359 SZDDESYS_ITEM_SYSITEMS = "SysItems",
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
360 SZDDESYS_ITEM_RTNMSG = "ReturnMessage",
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
361 SZDDESYS_ITEM_STATUS = "Status",
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
362 SZDDESYS_ITEM_FORMATS = "Formats",
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
363 SZDDESYS_ITEM_HELP = "Help",
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
364 SZDDE_ITEM_ITEMLIST = "TopicItemList";
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
365
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
366 version (Unicode) {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
367 alias DdeCreateStringHandleW DdeCreateStringHandle;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
368 alias DdeInitializeW DdeInitialize;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
369 alias DdeQueryStringW DdeQueryString;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
370 } else {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
371 alias DdeCreateStringHandleA DdeCreateStringHandle;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
372 alias DdeInitializeA DdeInitialize;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
373 alias DdeQueryStringA DdeQueryString;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
374 }