home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / epmdde.zip / DDESAMP.H < prev    next >
Text File  |  1992-12-09  |  2KB  |  52 lines

  1. /*────────────────────────────────────────────────────────────────────────────┐
  2. │   DDESAMP.H                                                                 │
  3. │                                                                             │
  4. │      Constant and type definitions for DDE Clients connecting to EPM v6.00  │
  5. │                                                                             │
  6. │   John Ponzo                                                                │
  7. └────────────────────────────────────────────────────────────────────────────*/
  8.  
  9. #define INCL_GPI
  10. #define INCL_WIN
  11. #define INCL_DOS
  12.  
  13. #include <os2.h>
  14. #include <stdio.h>
  15. #include <string.h>
  16. #include <stdlib.h>
  17. #include <memory.h>
  18. #include "dialog.h"
  19. #include <dde.h>
  20.  
  21. #define MSG ULONG
  22.  
  23. typedef struct _COMMANDDLGSTRUCT{
  24.    SHORT  Size;
  25.    CHAR   Buffer[15];
  26. } COMMANDDLGSTRUCT, *PCOMMANDDLGSTRUCT;
  27.  
  28.  
  29. MRESULT    EXPENTRY CommandDlgBox(HWND hwndDlg, MSG msg, MPARAM mp1, MPARAM mp2);
  30. MRESULT    EXPENTRY DdeSampleWndProc( HWND hwnd, MSG msg, MPARAM mp1, MPARAM mp2 );
  31. PDDESTRUCT MakeDDEMsg(USHORT usFormat,PSZ pszItemName,PVOID Data, USHORT usDataSize);
  32.  
  33.  
  34. #define ID_WINDOW   256
  35.  
  36. #define ID_SEND_COMMAND  257
  37. #define ID_INIT_DDE      258
  38. #define ID_TERMINATE_DDE 259
  39. #define ID_EXITPROG      261
  40.  
  41. #define MAXLEN      255
  42.  
  43. typedef struct  _DDECLIENTINFO {
  44.    HWND   hwndDDEServer;          //hwnd of the connected DDE Server
  45.    USHORT usAck;                  //Acknowledgement flags
  46.    BOOL   bConnected;             //Connected Flag
  47. } DDECLIENTINFO;
  48. typedef DDECLIENTINFO *PDDECLIENTINFO;
  49.  
  50. #define MSG_LEN 255
  51.  
  52.