1 (cl:in-package w32apimod
)
3 (define-w32api-module dde
:dde
)
5 (cl:in-package cl-w32api.module.dde
)
8 (defconstant-exported WM_DDE_FIRST
#x03E0
)
10 (defconstant-exported WM_DDE_INITIATE
#x03E0
)
12 (defconstant-exported WM_DDE_TERMINATE
(cl:+ #x03E0
1))
14 (defconstant-exported WM_DDE_ADVISE
(cl:+ #x03E0
2))
16 (defconstant-exported WM_DDE_UNADVISE
(cl:+ #x03E0
3))
18 (defconstant-exported WM_DDE_ACK
(cl:+ #x03E0
4))
20 (defconstant-exported WM_DDE_DATA
(cl:+ #x03E0
5))
22 (defconstant-exported WM_DDE_REQUEST
(cl:+ #x03E0
6))
24 (defconstant-exported WM_DDE_POKE
(cl:+ #x03E0
7))
26 (defconstant-exported WM_DDE_EXECUTE
(cl:+ #x03E0
8))
28 (defconstant-exported WM_DDE_LAST
(cl:+ #x03E0
8))
30 (defcstructex-exported DDEACK
31 (bAppReturnCode :unsigned-short
)
32 (reserved :unsigned-short
)
33 (fBusy :unsigned-short
)
34 (fAck :unsigned-short
))
36 (defcstructex-exported DDEADVISE
37 (reserved :unsigned-short
)
38 (fDeferUpd :unsigned-short
)
39 (fAckReq :unsigned-short
)
42 (defcstructex-exported DDEDATA
43 (unused :unsigned-short
)
44 (fResponse :unsigned-short
)
45 (fRelease :unsigned-short
)
46 (reserved :unsigned-short
)
47 (fAckReq :unsigned-short
)
51 (defcstructex-exported DDEPOKE
52 (unused :unsigned-short
)
53 (fRelease :unsigned-short
)
54 (fReserved :unsigned-short
)
58 (defcstructex-exported DDELN
59 (unused :unsigned-short
)
60 (fRelease :unsigned-short
)
61 (fDeferUpd :unsigned-short
)
62 (fAckReq :unsigned-short
)
65 (defcstructex-exported DDEUP
66 (unused :unsigned-short
)
67 (fAck :unsigned-short
)
68 (fRelease :unsigned-short
)
69 (fReserved :unsigned-short
)
70 (fAckReq :unsigned-short
)
74 (defcfunex-exported ("DdeSetQualityOfService" DdeSetQualityOfService
:convention
:stdcall
) :int
79 (defcfunex-exported ("ImpersonateDdeClientWindow" ImpersonateDdeClientWindow
:convention
:stdcall
) :int
83 (defcfunex-exported ("PackDDElParam" PackDDElParam
:convention
:stdcall
) :int32
88 (defcfunex-exported ("UnpackDDElParam" UnpackDDElParam
:convention
:stdcall
) :int
94 (defcfunex-exported ("FreeDDElParam" FreeDDElParam
:convention
:stdcall
) :int
98 (defcfunex-exported ("ReuseDDElParam" ReuseDDElParam
:convention
:stdcall
) :int32
103 (arg4 :unsigned-int
))
105 (defconstant-exported CP_WINANSI
1004)
107 (defconstant-exported CP_WINUNICODE
1200)
109 (defconstant-exported XTYPF_NOBLOCK
2)
111 (defconstant-exported XTYPF_NODATA
4)
113 (defconstant-exported XTYPF_ACKREQ
8)
115 (defconstant-exported XCLASS_MASK
#xFC00
)
117 (defconstant-exported XCLASS_BOOL
#x1000
)
119 (defconstant-exported XCLASS_DATA
#x2000
)
121 (defconstant-exported XCLASS_FLAGS
#x4000
)
123 (defconstant-exported XCLASS_NOTIFICATION
#x8000
)
125 (defconstant-exported XST_NULL
0)
127 (defconstant-exported XST_INCOMPLETE
1)
129 (defconstant-exported XST_CONNECTED
2)
131 (defconstant-exported XST_INIT1
3)
133 (defconstant-exported XST_INIT2
4)
135 (defconstant-exported XST_REQSENT
5)
137 (defconstant-exported XST_DATARCVD
6)
139 (defconstant-exported XST_POKESENT
7)
141 (defconstant-exported XST_POKEACKRCVD
8)
143 (defconstant-exported XST_EXECSENT
9)
145 (defconstant-exported XST_EXECACKRCVD
10)
147 (defconstant-exported XST_ADVSENT
11)
149 (defconstant-exported XST_UNADVSENT
12)
151 (defconstant-exported XST_ADVACKRCVD
13)
153 (defconstant-exported XST_UNADVACKRCVD
14)
155 (defconstant-exported XST_ADVDATASENT
15)
157 (defconstant-exported XST_ADVDATAACKRCVD
16)
159 (defconstant-exported XTYP_ERROR
(cl:logior
#x8000
2))
161 (defconstant-exported XTYP_ADVDATA
(cl:logior
16 #x4000
))
163 (defconstant-exported XTYP_ADVREQ
(cl:logior
32 #x2000
2))
165 (defconstant-exported XTYP_ADVSTART
(cl:logior
#x30
#x1000
))
167 (defconstant-exported XTYP_ADVSTOP
(cl:logior
#x0040
#x8000
))
169 (defconstant-exported XTYP_EXECUTE
(cl:logior
#x0050
#x4000
))
171 (defconstant-exported XTYP_CONNECT
(cl:logior
#x0060
#x1000
2))
173 (defconstant-exported XTYP_CONNECT_CONFIRM
(cl:logior
#x0070
#x8000
2))
175 (defconstant-exported XTYP_XACT_COMPLETE
(cl:logior
#x0080
#x8000
))
177 (defconstant-exported XTYP_POKE
(cl:logior
#x0090
#x4000
))
179 (defconstant-exported XTYP_REGISTER
(cl:logior
#x00A0
#x8000
2))
181 (defconstant-exported XTYP_REQUEST
(cl:logior
#x00B0
#x2000
))
183 (defconstant-exported XTYP_DISCONNECT
(cl:logior
#x00C0
#x8000
2))
185 (defconstant-exported XTYP_UNREGISTER
(cl:logior
#x00D0
#x8000
2))
187 (defconstant-exported XTYP_WILDCONNECT
(cl:logior
#x00E0
#x2000
2))
189 (defconstant-exported XTYP_MASK
#xF0
)
191 (defconstant-exported XTYP_SHIFT
4)
193 (defconstant-exported TIMEOUT_ASYNC
#xFFFFFFFF
)
195 (defconstant-exported QID_SYNC
#xFFFFFFFF
)
197 (defconstant-exported ST_CONNECTED
1)
199 (defconstant-exported ST_ADVISE
2)
201 (defconstant-exported ST_ISLOCAL
4)
203 (defconstant-exported ST_BLOCKED
8)
205 (defconstant-exported ST_CLIENT
16)
207 (defconstant-exported ST_TERMINATED
32)
209 (defconstant-exported ST_INLIST
64)
211 (defconstant-exported ST_BLOCKNEXT
128)
213 (defconstant-exported ST_ISSELF
256)
215 (defconstant-exported CADV_LATEACK
#xFFFF
)
217 (defconstant-exported DMLERR_NO_ERROR
0)
219 (defconstant-exported DMLERR_FIRST
#x4000
)
221 (defconstant-exported DMLERR_ADVACKTIMEOUT
#x4000
)
223 (defconstant-exported DMLERR_BUSY
#x4001
)
225 (defconstant-exported DMLERR_DATAACKTIMEOUT
#x4002
)
227 (defconstant-exported DMLERR_DLL_NOT_INITIALIZED
#x4003
)
229 (defconstant-exported DMLERR_DLL_USAGE
#x4004
)
231 (defconstant-exported DMLERR_EXECACKTIMEOUT
#x4005
)
233 (defconstant-exported DMLERR_INVALIDPARAMETER
#x4006
)
235 (defconstant-exported DMLERR_LOW_MEMORY
#x4007
)
237 (defconstant-exported DMLERR_MEMORY_ERROR
#x4008
)
239 (defconstant-exported DMLERR_NOTPROCESSED
#x4009
)
241 (defconstant-exported DMLERR_NO_CONV_ESTABLISHED
#x400a
)
243 (defconstant-exported DMLERR_POKEACKTIMEOUT
#x400b
)
245 (defconstant-exported DMLERR_POSTMSG_FAILED
#x400c
)
247 (defconstant-exported DMLERR_REENTRANCY
#x400d
)
249 (defconstant-exported DMLERR_SERVER_DIED
#x400e
)
251 (defconstant-exported DMLERR_SYS_ERROR
#x400f
)
253 (defconstant-exported DMLERR_UNADVACKTIMEOUT
#x4010
)
255 (defconstant-exported DMLERR_UNFOUND_QUEUE_ID
#x4011
)
257 (defconstant-exported DMLERR_LAST
#x4011
)
259 (defconstant-exported DDE_FACK
#x8000
)
261 (defconstant-exported DDE_FBUSY
#x4000
)
263 (defconstant-exported DDE_FDEFERUPD
#x4000
)
265 (defconstant-exported DDE_FACKREQ
#x8000
)
267 (defconstant-exported DDE_FRELEASE
#x2000
)
269 (defconstant-exported DDE_FREQUESTED
#x1000
)
271 (defconstant-exported DDE_FAPPSTATUS
#x00ff
)
273 (defconstant-exported DDE_FNOTPROCESSED
0)
275 ; (defconstant-exported DDE_FACKRESERVED (cl:logior ~(0x8000 #x4000 #x00ff)))
276 (defconstant-exported DDE_FACKRESERVED
(cl:lognot
(cl:logior DDE_FACK DDE_FBUSY DDE_FAPPSTATUS
)))
278 ; (defconstant-exported DDE_FADVRESERVED (cl:logior ~(0x8000 #x4000)))
279 (defconstant-exported DDE_FADVRESERVED
(cl:lognot
(cl:logior DDE_FACKREQ DDE_FDEFERUPD
)))
281 ; (defconstant-exported DDE_FDATRESERVED (cl:logior ~(0x8000 #x2000 #x1000)))
282 (defconstant-exported DDE_FDATRESERVED
(cl:lognot
(cl:logior DDE_FACKREQ DDE_FRELEASE DDE_FREQUESTED
)))
284 ; (defconstant-exported DDE_FPOKRESERVED ~0x2000)
285 (defconstant-exported DDE_FPOKRESERVED
(cl:lognot DDE_FRELEASE
))
287 (defconstant-exported MSGF_DDEMGR
#x8001
)
289 (defconstant-exported CBF_FAIL_SELFCONNECTIONS
#x1000
)
291 (defconstant-exported CBF_FAIL_CONNECTIONS
#x2000
)
293 (defconstant-exported CBF_FAIL_ADVISES
#x4000
)
295 (defconstant-exported CBF_FAIL_EXECUTES
#x8000
)
297 (defconstant-exported CBF_FAIL_POKES
#x10000
)
299 (defconstant-exported CBF_FAIL_REQUESTS
#x20000
)
301 (defconstant-exported CBF_FAIL_ALLSVRXACTIONS
#x3f000
)
303 (defconstant-exported CBF_SKIP_CONNECT_CONFIRMS
#x40000
)
305 (defconstant-exported CBF_SKIP_REGISTRATIONS
#x80000
)
307 (defconstant-exported CBF_SKIP_UNREGISTRATIONS
#x100000
)
309 (defconstant-exported CBF_SKIP_DISCONNECTS
#x200000
)
311 (defconstant-exported CBF_SKIP_ALLNOTIFICATIONS
#x3c0000
)
313 (defconstant-exported APPCMD_CLIENTONLY
#x10
)
315 (defconstant-exported APPCMD_FILTERINITS
#x20
)
317 (defconstant-exported APPCMD_MASK
#xFF0
)
319 (defconstant-exported APPCLASS_STANDARD
0)
321 (defconstant-exported APPCLASS_MASK
#xF
)
323 (defconstant-exported EC_ENABLEALL
0)
325 (defconstant-exported EC_ENABLEONE
128)
327 (defconstant-exported EC_DISABLE
8)
329 (defconstant-exported EC_QUERYWAITING
2)
331 (defconstant-exported DNS_REGISTER
1)
333 (defconstant-exported DNS_UNREGISTER
2)
335 (defconstant-exported DNS_FILTERON
4)
337 (defconstant-exported DNS_FILTEROFF
8)
339 (defconstant-exported HDATA_APPOWNED
1)
341 (defconstant-exported MAX_MONITORS
4)
343 (defconstant-exported APPCLASS_MONITOR
1)
345 (defconstant-exported XTYP_MONITOR
(cl:logior
#x8000
2 #xF0
))
347 (defconstant-exported MF_HSZ_INFO
#x1000000
)
349 (defconstant-exported MF_SENDMSGS
#x2000000
)
351 (defconstant-exported MF_POSTMSGS
#x4000000
)
353 (defconstant-exported MF_CALLBACKS
#x8000000
)
355 (defconstant-exported MF_ERRORS
#x10000000
)
357 (defconstant-exported MF_LINKS
#x20000000
)
359 (defconstant-exported MF_CONV
#x40000000
)
361 (defconstant-exported MF_MASK
#xFF000000
)
363 (defconstant-exported MH_CREATE
1)
365 (defconstant-exported MH_KEEP
2)
367 (defconstant-exported MH_DELETE
3)
369 (defconstant-exported MH_CLEANUP
4)
371 (defcstructex-exported HCONVLIST__
376 (defcstructex-exported HCONV__
381 (defcstructex-exported HSZ__
386 (defcstructex-exported HDDEDATA__
395 (defcstructex-exported HSZPAIR
403 (defcstructex-exported CONVCONTEXT
405 (wFlags :unsigned-int
)
406 (wCountryID :unsigned-int
)
408 (dwLangID :unsigned-long
)
409 (dwSecurity :unsigned-long
)
410 (qos SECURITY_QUALITY_OF_SERVICE
))
416 (defcstructex-exported CONVINFO
418 (hUser :unsigned-long
)
419 (hConvPartner :pointer
)
420 (hszSvcPartner :pointer
)
421 (hszServiceReq :pointer
)
425 (wType :unsigned-int
)
426 (wStatus :unsigned-int
)
427 (wConvst :unsigned-int
)
428 (wLastError :unsigned-int
)
430 (ConvCtxt CONVCONTEXT
)
432 (hwndPartner :pointer
))
438 (defcstructex-exported DDEML_MSG_HOOK_DATA
441 (cbData :unsigned-long
)
446 (defcstructex-exported MONHSZSTRUCT
449 (dwTime :unsigned-long
)
458 (defcstructex-exported MONLINKSTRUCT
460 (dwTime :unsigned-long
)
469 (hConvServer :pointer
)
470 (hConvClient :pointer
))
476 (defcstructex-exported MONCONVSTRUCT
479 (dwTime :unsigned-long
)
483 (hConvClient :pointer
)
484 (hConvServer :pointer
))
490 (defcstructex-exported MONCBSTRUCT
492 (dwTime :unsigned-long
)
494 (dwRet :unsigned-long
)
495 (wType :unsigned-int
)
501 (dwData1 :unsigned-long
)
502 (dwData2 :unsigned-long
)
504 (cbData :unsigned-long
)
511 (defcstructex-exported MONERRSTRUCT
513 (wLastError :unsigned-int
)
514 (dwTime :unsigned-long
)
521 (defcstructex-exported MONMSGSTRUCT
524 (dwTime :unsigned-long
)
527 (wParam :unsigned-int
)
529 (dmhd DDEML_MSG_HOOK_DATA
))
535 (defconstant-exported SZDDESYS_TOPIC
"System")
537 (defconstant-exported SZDDESYS_ITEM_TOPICS
"Topics")
539 (defconstant-exported SZDDESYS_ITEM_SYSITEMS
"SysItems")
541 (defconstant-exported SZDDESYS_ITEM_RTNMSG
"ReturnMessage")
543 (defconstant-exported SZDDESYS_ITEM_STATUS
"Status")
545 (defconstant-exported SZDDESYS_ITEM_FORMATS
"Formats")
547 (defconstant-exported SZDDESYS_ITEM_HELP
"Help")
549 (defconstant-exported SZDDE_ITEM_ITEMLIST
"TopicItemList")