home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 April / PCWorld_2000-04_cd.bin / Software / Servis / Devc / _SETUP.4 / Group3 / dde.h < prev    next >
C/C++ Source or Header  |  1999-11-07  |  2KB  |  61 lines

  1. #ifndef _DDE_H
  2. #define _DDE_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #define WM_DDE_FIRST    0x03E0
  7. #define WM_DDE_INITIATE    (WM_DDE_FIRST)
  8. #define WM_DDE_TERMINATE    (WM_DDE_FIRST+1)
  9. #define WM_DDE_ADVISE    (WM_DDE_FIRST+2)
  10. #define WM_DDE_UNADVISE    (WM_DDE_FIRST+3)
  11. #define WM_DDE_ACK    (WM_DDE_FIRST+4)
  12. #define WM_DDE_DATA    (WM_DDE_FIRST+5)
  13. #define WM_DDE_REQUEST    (WM_DDE_FIRST+6)
  14. #define WM_DDE_POKE    (WM_DDE_FIRST+7)
  15. #define WM_DDE_EXECUTE    (WM_DDE_FIRST+8)
  16. #define WM_DDE_LAST    (WM_DDE_FIRST+8)
  17.  
  18. #ifndef RC_INVOKED
  19. typedef struct {
  20.     unsigned short bAppReturnCode:8,reserved:6,fBusy:1,fAck:1;
  21. } DDEACK;
  22. typedef struct {
  23.     unsigned short reserved:14,fDeferUpd:1,fAckReq:1;
  24.     short cfFormat;
  25. } DDEADVISE;
  26. typedef struct {
  27.     unsigned short unused:12,fResponse:1,fRelease:1,reserved:1,fAckReq:1;
  28.     short cfFormat;
  29.     BYTE Value[1];
  30. } DDEDATA;
  31. typedef struct {
  32.     unsigned short unused:13,fRelease:1,fReserved:2;
  33.     short cfFormat;
  34.     BYTE  Value[1];
  35. } DDEPOKE;
  36. typedef struct {
  37.         unsigned short unused:13,
  38.                  fRelease:1,
  39.                  fDeferUpd:1,
  40.          fAckReq:1;
  41.     short    cfFormat;
  42. } DDELN;
  43.  
  44. typedef struct {
  45.     unsigned short unused:12,fAck:1,fRelease:1,fReserved:1,fAckReq:1;
  46.     short cfFormat;
  47.     BYTE rgb[1];
  48. } DDEUP;
  49. BOOL WINAPI DdeSetQualityOfService(HWND,const SECURITY_QUALITY_OF_SERVICE*,PSECURITY_QUALITY_OF_SERVICE);
  50. BOOL WINAPI ImpersonateDdeClientWindow(HWND,HWND);
  51. LONG WINAPI PackDDElParam(UINT,UINT,UINT);
  52. BOOL WINAPI UnpackDDElParam(UINT,LONG,PUINT,PUINT);
  53. BOOL WINAPI FreeDDElParam(UINT,LONG);
  54. LONG WINAPI ReuseDDElParam(LONG,UINT,UINT,UINT,UINT);
  55. #endif
  56.  
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60. #endif
  61.