home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 5.ddi / MWHC.005 / R0 < prev    next >
Encoding:
Text File  |  1992-01-07  |  4.2 KB  |  120 lines

  1. /* DDE window messages */
  2.  
  3. #define WM_DDE_FIRST        0x03E0
  4. #define WM_DDE_INITIATE     (WM_DDE_FIRST)
  5. #define WM_DDE_TERMINATE    (WM_DDE_FIRST+1)
  6. #define WM_DDE_ADVISE       (WM_DDE_FIRST+2)
  7. #define WM_DDE_UNADVISE     (WM_DDE_FIRST+3)
  8. #define WM_DDE_ACK          (WM_DDE_FIRST+4)
  9. #define WM_DDE_DATA         (WM_DDE_FIRST+5)
  10. #define WM_DDE_REQUEST      (WM_DDE_FIRST+6)
  11. #define WM_DDE_POKE         (WM_DDE_FIRST+7)
  12. #define WM_DDE_EXECUTE      (WM_DDE_FIRST+8)
  13. #define WM_DDE_LAST         (WM_DDE_FIRST+8)
  14.  
  15. /*----------------------------------------------------------------------------
  16. |       DDEACK structure
  17. |
  18. |       Structure of wStatus (LOWORD(lParam)) in WM_DDE_ACK message
  19. |       sent in response to a WM_DDE_DATA, WM_DDE_REQUEST, WM_DDE_POKE,
  20. |       WM_DDE_ADVISE, or WM_DDE_UNADVISE message.
  21. |
  22. ----------------------------------------------------------------------------*/
  23.  
  24. typedef struct {
  25.         unsigned short bAppReturnCode:8,
  26.                  reserved:6,
  27.                  fBusy:1,
  28.                  fAck:1;
  29. } DDEACK;
  30. typedef DDEACK lpFAR    *LPDDEACK; typedef DDEACK _Dfar *LP48DDEACK;
  31.  
  32.  
  33. /*----------------------------------------------------------------------------
  34. |       DDEADVISE structure
  35. |
  36. |       WM_DDE_ADVISE parameter structure for hOptions (LOWORD(lParam))
  37. |
  38. ----------------------------------------------------------------------------*/
  39.  
  40. typedef struct {
  41.         unsigned short reserved:14,
  42.                  fDeferUpd:1,
  43.                  fAckReq:1;
  44.         short    cfFormat:16;
  45. } DDEADVISE;
  46. typedef DDEADVISE lpFAR    *LPDDEADVISE; typedef DDEADVISE _Dfar *LP48DDEADVISE;
  47.  
  48.  
  49. /*----------------------------------------------------------------------------
  50. |       DDEDATA structure
  51. |
  52. |       WM_DDE_DATA parameter structure for hData (LOWORD(lParam)). 
  53. |       The actual size of this structure depends on the size of 
  54. |       the Value array.
  55. |
  56. ----------------------------------------------------------------------------*/
  57.  
  58. typedef struct {
  59.         unsigned short unused:12,
  60.                  fResponse:1,
  61.                  fRelease:1,
  62.                  reserved:1,
  63.                  fAckReq:1;
  64.         short    cfFormat:16;
  65.         CHAR     Value[1];
  66. } DDEDATA;
  67. typedef DDEDATA lpFAR    *LPDDEDATA; typedef DDEDATA _Dfar *LP48DDEDATA;
  68.  
  69.  
  70. /*----------------------------------------------------------------------------
  71. |       DDEPOKE structure
  72. |
  73. |       WM_DDE_POKE parameter structure for hData (LOWORD(lParam)).  
  74. |       The actual size of this structure depends on the size of 
  75. |       the Value array.
  76. |
  77. ----------------------------------------------------------------------------*/
  78.  
  79. typedef struct {
  80.         unsigned short unused:13,  /* Earlier versions of DDE.H incorrectly */
  81.                              /* 12 unused bits.                       */
  82.                  fRelease:1,
  83.                  fReserved:2;
  84.         short      cfFormat:16;
  85.         BYTE     Value[1];  /* This member was named rgb[1] in previous */
  86.                             /* versions of DDE.H                        */
  87.  
  88. } DDEPOKE;
  89. typedef DDEPOKE lpFAR    *LPDDEPOKE; typedef DDEPOKE _Dfar *LP48DDEPOKE;
  90.  
  91. /*----------------------------------------------------------------------------
  92. The following typedef's were used in previous versions of the Windows SDK.
  93. They are still valid.  The above typedef's define exactly the same structures
  94. as those below.  The above typedef names are recommended, however, as they
  95. are more meaningful.
  96.  
  97. Note that the DDEPOKE structure typedef'ed in earlier versions of DDE.H did
  98. not correctly define the bit positions.
  99. ----------------------------------------------------------------------------*/
  100.  
  101. typedef struct {
  102.         unsigned short unused:13,
  103.                  fRelease:1,
  104.                  fDeferUpd:1,
  105.                  fAckReq:1;
  106.         short    cfFormat:16;
  107. } DDELN;
  108. typedef DDELN lpFAR    *LPDDELN; typedef DDELN _Dfar *LP48DDELN;
  109.  
  110. typedef struct {
  111.         unsigned short unused:12,
  112.                  fAck:1,
  113.                  fRelease:1,
  114.                  fReserved:1,
  115.                  fAckReq:1;
  116.         short    cfFormat:16;
  117.         BYTE     rgb[1];
  118. } DDEUP;
  119. typedef DDEUP lpFAR    *LPDDEUP; typedef DDEUP _Dfar *LP48DDEUP;
  120.