summaryrefslogtreecommitdiffstats
path: root/private/os2/client/thunk/include/dde.h
diff options
context:
space:
mode:
Diffstat (limited to 'private/os2/client/thunk/include/dde.h')
-rw-r--r--private/os2/client/thunk/include/dde.h115
1 files changed, 115 insertions, 0 deletions
diff --git a/private/os2/client/thunk/include/dde.h b/private/os2/client/thunk/include/dde.h
new file mode 100644
index 000000000..a131ccdc1
--- /dev/null
+++ b/private/os2/client/thunk/include/dde.h
@@ -0,0 +1,115 @@
+
+/* DDE window messages */
+
+#define WM_DDE_FIRST 0x03E0
+#define WM_DDE_INITIATE (WM_DDE_FIRST)
+#define WM_DDE_TERMINATE (WM_DDE_FIRST+1)
+#define WM_DDE_ADVISE (WM_DDE_FIRST+2)
+#define WM_DDE_UNADVISE (WM_DDE_FIRST+3)
+#define WM_DDE_ACK (WM_DDE_FIRST+4)
+#define WM_DDE_DATA (WM_DDE_FIRST+5)
+#define WM_DDE_REQUEST (WM_DDE_FIRST+6)
+#define WM_DDE_POKE (WM_DDE_FIRST+7)
+#define WM_DDE_EXECUTE (WM_DDE_FIRST+8)
+#define WM_DDE_LAST (WM_DDE_FIRST+8)
+
+/*----------------------------------------------------------------------------
+| DDEACK structure
+|
+| Structure of wStatus (LOWORD(lParam)) in WM_DDE_ACK message
+| sent in response to a WM_DDE_DATA, WM_DDE_REQUEST, WM_DDE_POKE,
+| WM_DDE_ADVISE, or WM_DDE_UNADVISE message.
+|
+----------------------------------------------------------------------------*/
+
+typedef struct {
+ unsigned bAppReturnCode:8,
+ reserved:6,
+ fBusy:1,
+ fAck:1;
+} DDEACK;
+
+
+/*----------------------------------------------------------------------------
+| DDEADVISE structure
+|
+| WM_DDE_ADVISE parameter structure for hOptions (LOWORD(lParam))
+|
+----------------------------------------------------------------------------*/
+
+typedef struct {
+ unsigned reserved:14,
+ fDeferUpd:1,
+ fAckReq:1;
+ int cfFormat;
+} DDEADVISE;
+
+
+/*----------------------------------------------------------------------------
+| DDEDATA structure
+|
+| WM_DDE_DATA parameter structure for hData (LOWORD(lParam)).
+| The actual size of this structure depends on the size of
+| the Value array.
+|
+----------------------------------------------------------------------------*/
+
+typedef struct {
+ unsigned unused:12,
+ fResponse:1,
+ fRelease:1,
+ reserved:1,
+ fAckReq:1;
+ int cfFormat;
+ BYTE Value[1];
+} DDEDATA;
+
+
+/*----------------------------------------------------------------------------
+| DDEPOKE structure
+|
+| WM_DDE_POKE parameter structure for hData (LOWORD(lParam)).
+| The actual size of this structure depends on the size of
+| the Value array.
+|
+----------------------------------------------------------------------------*/
+
+typedef struct {
+ unsigned unused:13, /* Earlier versions of DDE.H incorrectly */
+ /* 12 unused bits. */
+ fRelease:1,
+ fReserved:2;
+ int cfFormat;
+ BYTE Value[1]; /* This member was named rgb[1] in previous */
+ /* versions of DDE.H */
+
+} DDEPOKE;
+
+/*----------------------------------------------------------------------------
+The following typedef's were used in previous versions of the Windows SDK.
+They are still valid. The above typedef's define exactly the same structures
+as those below. The above typedef names are recommended, however, as they
+are more meaningful.
+
+Note that the DDEPOKE structure typedef'ed in earlier versions of DDE.H did
+not correctly define the bit positions.
+----------------------------------------------------------------------------*/
+
+typedef struct {
+ unsigned unused:13,
+ fRelease:1,
+ fDeferUpd:1,
+ fAckReq:1;
+ int cfFormat;
+} DDELN;
+
+typedef struct {
+ unsigned unused:12,
+ fAck:1,
+ fRelease:1,
+ fReserved:1,
+ fAckReq:1;
+ int cfFormat;
+ BYTE rgb[1];
+} DDEUP;
+