Annotation of mstools/h/dde.h, revision 1.1.1.4

1.1.1.3   root        1: #ifndef _DDEHEADER_INCLUDED_
                      2: #define _DDEHEADER_INCLUDED_
                      3: 
1.1.1.2   root        4: #ifndef _WINDEF_
                      5: #include <windef.h>
                      6: #endif
1.1       root        7: 
1.1.1.4 ! root        8: #ifdef __cplusplus
        !             9: extern "C" {
        !            10: #endif
        !            11: 
1.1       root       12: /* DDE window messages */
                     13: 
                     14: #define WM_DDE_FIRST       0x03E0
                     15: #define WM_DDE_INITIATE     (WM_DDE_FIRST)
                     16: #define WM_DDE_TERMINATE    (WM_DDE_FIRST+1)
                     17: #define WM_DDE_ADVISE      (WM_DDE_FIRST+2)
                     18: #define WM_DDE_UNADVISE     (WM_DDE_FIRST+3)
                     19: #define WM_DDE_ACK             (WM_DDE_FIRST+4)
                     20: #define WM_DDE_DATA            (WM_DDE_FIRST+5)
                     21: #define WM_DDE_REQUEST     (WM_DDE_FIRST+6)
                     22: #define WM_DDE_POKE            (WM_DDE_FIRST+7)
                     23: #define WM_DDE_EXECUTE     (WM_DDE_FIRST+8)
                     24: #define WM_DDE_LAST            (WM_DDE_FIRST+8)
                     25: 
                     26: /*----------------------------------------------------------------------------
                     27: |       DDEACK structure
                     28: |
                     29: |      Structure of wStatus (LOWORD(lParam)) in WM_DDE_ACK message
                     30: |       sent in response to a WM_DDE_DATA, WM_DDE_REQUEST, WM_DDE_POKE,
                     31: |       WM_DDE_ADVISE, or WM_DDE_UNADVISE message.
                     32: |
                     33: ----------------------------------------------------------------------------*/
                     34: 
                     35: typedef struct {
                     36:         unsigned short bAppReturnCode:8,
                     37:                  reserved:6,
                     38:                  fBusy:1,
                     39:                 fAck:1;
                     40: } DDEACK;
                     41: 
                     42: 
                     43: /*----------------------------------------------------------------------------
                     44: |       DDEADVISE structure
                     45: |
                     46: |      WM_DDE_ADVISE parameter structure for hOptions (LOWORD(lParam))
                     47: |
                     48: ----------------------------------------------------------------------------*/
                     49: 
                     50: typedef struct {
                     51:         unsigned short reserved:14,
                     52:                  fDeferUpd:1,
                     53:                 fAckReq:1;
1.1.1.2   root       54:        short     cfFormat;
1.1       root       55: } DDEADVISE;
                     56: 
                     57: 
                     58: /*----------------------------------------------------------------------------
                     59: |       DDEDATA structure
                     60: |
1.1.1.2   root       61: |       WM_DDE_DATA parameter structure for hData (LOWORD(lParam)).
                     62: |       The actual size of this structure depends on the size of
1.1       root       63: |       the Value array.
                     64: |
                     65: ----------------------------------------------------------------------------*/
                     66: 
                     67: typedef struct {
                     68:        unsigned short unused:12,
                     69:                  fResponse:1,
                     70:                  fRelease:1,
                     71:                  reserved:1,
                     72:                  fAckReq:1;
1.1.1.2   root       73:        short    cfFormat;
1.1       root       74:        BYTE     Value[1];
                     75: } DDEDATA;
                     76: 
                     77: 
                     78: /*----------------------------------------------------------------------------
                     79: |      DDEPOKE structure
                     80: |
1.1.1.2   root       81: |      WM_DDE_POKE parameter structure for hData (LOWORD(lParam)).
                     82: |       The actual size of this structure depends on the size of
1.1       root       83: |       the Value array.
                     84: |
                     85: ----------------------------------------------------------------------------*/
                     86: 
                     87: typedef struct {
                     88:        unsigned short unused:13,  /* Earlier versions of DDE.H incorrectly */
                     89:                              /* 12 unused bits.                       */
                     90:                 fRelease:1,
                     91:                 fReserved:2;
1.1.1.2   root       92:        short    cfFormat;
1.1       root       93:        BYTE     Value[1];  /* This member was named rgb[1] in previous */
                     94:                             /* versions of DDE.H                        */
                     95: 
                     96: } DDEPOKE;
                     97: 
                     98: /*----------------------------------------------------------------------------
                     99: The following typedef's were used in previous versions of the Windows SDK.
                    100: They are still valid.  The above typedef's define exactly the same structures
                    101: as those below.  The above typedef names are recommended, however, as they
                    102: are more meaningful.
                    103: 
                    104: Note that the DDEPOKE structure typedef'ed in earlier versions of DDE.H did
                    105: not correctly define the bit positions.
                    106: ----------------------------------------------------------------------------*/
                    107: 
                    108: typedef struct {
                    109:         unsigned short unused:13,
                    110:                  fRelease:1,
                    111:                  fDeferUpd:1,
                    112:                 fAckReq:1;
1.1.1.2   root      113:        short    cfFormat;
1.1       root      114: } DDELN;
                    115: 
                    116: typedef struct {
                    117:        unsigned short unused:12,
                    118:                  fAck:1,
                    119:                  fRelease:1,
                    120:                  fReserved:1,
                    121:                  fAckReq:1;
1.1.1.2   root      122:        short    cfFormat;
1.1       root      123:        BYTE     rgb[1];
                    124: } DDEUP;
                    125: 
1.1.1.4 ! root      126: 
1.1       root      127: /*
1.1.1.4 ! root      128:  * DDE SECURITY
1.1       root      129:  */
                    130: 
1.1.1.4 ! root      131: BOOL
        !           132: WINAPI
        !           133: DdeSetQualityOfService(
        !           134:     HWND hwndClient,
        !           135:     CONST SECURITY_QUALITY_OF_SERVICE *pqosNew,
        !           136:     PSECURITY_QUALITY_OF_SERVICE pqosPrev);
        !           137: 
        !           138: BOOL
        !           139: WINAPI
        !           140: ImpersonateDdeClientWindow(
        !           141:     HWND hWndClient,
        !           142:     HWND hWndServer);
1.1       root      143: 
1.1.1.4 ! root      144: /*
        !           145:  * DDE message packing APIs
        !           146:  */
1.1.1.2   root      147: LONG APIENTRY PackDDElParam(UINT msg, UINT uiLo, UINT uiHi);
                    148: BOOL APIENTRY UnpackDDElParam(UINT msg, LONG lParam, PUINT puiLo, PUINT puiHi);
                    149: BOOL APIENTRY FreeDDElParam(UINT msg, LONG lParam);
                    150: LONG APIENTRY ReuseDDElParam(LONG lParam, UINT msgIn, UINT msgOut, UINT uiLo, UINT uiHi);
1.1.1.3   root      151: 
1.1.1.4 ! root      152: #ifdef __cplusplus
        !           153: }
        !           154: #endif
        !           155: 
1.1.1.3   root      156: #endif // _DDEHEADER_INCLUDED_

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.