home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddesrv.zip / IOS2P008.H < prev    next >
Text File  |  1994-08-12  |  2KB  |  84 lines

  1. /* *******************************************************************
  2.    *** File:   IOS2P008.H                                          ***
  3.    *** Author: Harald (HaWi) Wilhelm                               ***
  4.    *** Date:   16.04.1994                                          ***
  5.    ******************************************************************* */
  6. /* Classnames */
  7. #define WCP_IOS2P "WC.IOS2P"
  8. #define WCP_DDE   "WC.DDE"
  9.  
  10. /* Additional Messages */
  11. #define WMP_CREATE            (WM_USER + 20)
  12. #define WMP_DDECOUNT          (WM_USER + 21)
  13. #define WMP_DDECREATE         (WM_USER + 22)
  14. #define WMP_DDEDESTROY        (WM_USER + 23)
  15. #define WMP_DDEUPDATE         (WM_USER + 24)
  16. #define WMP_DELETELISTBOXITEM (WM_USER + 25)
  17. #define WMP_INSERTLISTBOXITEM (WM_USER + 26)
  18. #define WMP_QUERYLISTBOXITEM  (WM_USER + 27)
  19. #define WMP_SIZE              (WM_USER + 28)
  20. #define WMP_STARTUP           (WM_USER + 29)
  21.  
  22. /* Resource IDs */
  23. #define IDW_IOS2P   100
  24. #define IDL_IOS2P_1 101
  25. #define IDL_IOS2P_2 102
  26.  
  27. /* DDE Constants */
  28. #define DDEP_MAXDDELINKS 26
  29. #define DDEP_APPLICATION "IOS2P"
  30. #define DDEP_TOPIC1      "QueryListbox1Item"
  31. #define DDEP_TOPIC2      "QueryListbox2Item"
  32. #define DDEP_TOPIC3      "InsertListbox1Item"
  33. #define DDEP_TOPIC4      "InsertListbox2Item"
  34. #define DDEP_TOPIC5      "DeleteListbox1Item"
  35. #define DDEP_TOPIC6      "DeleteListbox2Item"
  36.  
  37. /* For 32-Bit PM */
  38. #ifndef _MSG_
  39.    #define _MSG_
  40.    typedef unsigned long MSG ;
  41. #endif
  42.  
  43. /* used structs */
  44. typedef struct
  45.    {
  46.    HAB  hab ;
  47.    HWND hwndClient ;
  48.    HWND hwndFrame ;
  49.    } STARTUP, *PSTARTUP ;
  50.  
  51. typedef struct
  52.    {
  53.    BOOL fMinimized ;
  54.    HAB  hab ;
  55.    HWND ahwndDDE [DDEP_MAXDDELINKS] ;
  56.    HWND hwndClient ;
  57.    HWND hwndFrame ;
  58.    HWND hwndListbox1 ;
  59.    HWND hwndListbox2 ;
  60.    } WND, *PWND ;
  61.  
  62. typedef struct
  63.    {
  64.    CHAR szTopic [256] ;
  65.    HWND hwndDDEClient ;
  66.    HWND hwndParent ;
  67.    } DDECONV, *PDDECONV ;
  68.  
  69. typedef struct
  70.    {
  71.    BOOL  fImmediate ;
  72.    CHAR  szItemName [512] ;
  73.    CHAR  szTopic [256] ;
  74.    HWND  hwndDDEClient ;
  75.    HWND  hwndParent ;
  76.    ULONG ulRequestType ;
  77.    } WNDDDE, *PWNDDDE ;
  78.  
  79. /* function declarations */
  80. MRESULT EXPENTRY ClientWndProc (HWND, MSG, MPARAM, MPARAM) ;
  81. MRESULT EXPENTRY DDEWndProc (HWND, MSG, MPARAM, MPARAM) ;
  82. INT              main (VOID) ;
  83. PDDESTRUCT       MakeDDESeg (HWND, PSZ, ULONG, ULONG, PVOID, ULONG) ;
  84.