home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / d / d020_1_4 / 3.ddi / INC / DDE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-01  |  3.5 KB  |  116 lines

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