|
|
1.1 ! root 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 short 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 short reserved:14, ! 42: fDeferUpd:1, ! 43: fAckReq:1; ! 44: WORD 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 short unused:12, ! 59: fResponse:1, ! 60: fRelease:1, ! 61: reserved:1, ! 62: fAckReq:1; ! 63: WORD 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 short unused:13, /* Earlier versions of DDE.H incorrectly */ ! 79: /* 12 unused bits. */ ! 80: fRelease:1, ! 81: fReserved:2; ! 82: WORD 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 short unused:13, ! 100: fRelease:1, ! 101: fDeferUpd:1, ! 102: fAckReq:1; ! 103: WORD cfFormat; ! 104: } DDELN; ! 105: ! 106: typedef struct { ! 107: unsigned short unused:12, ! 108: fAck:1, ! 109: fRelease:1, ! 110: fReserved:1, ! 111: fAckReq:1; ! 112: WORD cfFormat; ! 113: BYTE rgb[1]; ! 114: } DDEUP; ! 115: ! 116: /* ! 117: * dde-specific access flags ! 118: */ ! 119: #define DDE_ADVISE 0x0001L ! 120: #define DDE_EXECUTE 0x0002L ! 121: #define DDE_POKE 0x0004L ! 122: #define DDE_REQUEST 0x0008L ! 123: ! 124: /* ! 125: * DDE packing structures ! 126: */ ! 127: ! 128: typedef struct tagDDEACKSTRUCT { ! 129: UINT wStatus; ! 130: UINT aItemORhCommands; ! 131: } DDEACKSTRUCT, *PDDEACKSTRUCT; ! 132: ! 133: typedef struct tagDDEADVISESTRUCT { ! 134: HANDLE hOptions; ! 135: UINT aItem; ! 136: } DDEADVISESTRUCT, *PDDEADVISESTRUCT; ! 137: ! 138: typedef struct tagDDEDATASTRUCT { ! 139: HANDLE hData; ! 140: UINT aItem; ! 141: } DDEDATASTRUCT, *PDDEDATASTRUCT; ! 142: ! 143: typedef struct tagDDEPOKESTRUCT { ! 144: HANDLE hData; ! 145: UINT aItem; ! 146: } DDEPOKESTRUCT, *PDDEPOKESTRUCT; ! 147:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.