home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pc3270sa.zip / ddxfer / ddxfer.h < prev    next >
Text File  |  2002-02-28  |  4KB  |  99 lines

  1. /*-----------------------------------------------------------------------------*
  2. |  Menu IDs                                                                    |
  3. *-----------------------------------------------------------------------------*/
  4. #define IDM_ABOUT          100
  5. #define IDM_TEXT           101
  6. #define IDM_BIN            102
  7. #define IDM_TITLE          103
  8. #define IDM_TOP            104
  9. #define IDM_TERM           105
  10. #define IDM_CLEAR          106
  11.  
  12. /*-----------------------------------------------------------------------------*
  13. |  Dialog IDs                                                                  |
  14. *-----------------------------------------------------------------------------*/
  15. #define ABOUTBOX           1000
  16. #define INFOBOX            1001
  17. #define TEXTBOX            1002
  18. #define TITLEBOX           1003
  19.  
  20. #define IDD_NUMFILES       200
  21. #define IDD_XCORD          201
  22. #define IDD_YCORD          202
  23. #define IDD_ASCII          203
  24. #define IDD_CRLF           204
  25. #define IDD_ADDITIONAL     205
  26. #define IDD_OPTIONS        206
  27. #define IDD_VMDISK         207
  28. #define IDD_SESSID         208
  29. #define IDD_TITLE          209
  30. #define IDD_LIST           210
  31.  
  32. /*-----------------------------------------------------------------------------*
  33. |  Icon IDs                                                                    |
  34. *-----------------------------------------------------------------------------*/
  35. #define DDXFER             400
  36. #define DDSEND             410
  37. #define DDRECV             420
  38.  
  39. /*-----------------------------------------------------------------------------*
  40. |  String IDs                                                                  |
  41. *-----------------------------------------------------------------------------*/
  42. #define LS_ASCII           300
  43. #define LS_CRLF            301
  44. #define LS_MENU            302
  45. #define LS_LIST            303
  46. #define LS_LISTBOX         304
  47. #define LS_TYPE            305
  48. #define LS_CLASS           306
  49. #define LS_TITLE           307
  50.  
  51. /*-----------------------------------------------------------------------------*
  52. |  Defines for the main window's size                                          |
  53. *-----------------------------------------------------------------------------*/
  54. #define MAIN_WIDTH         400
  55. #define MAIN_HEIGHT        200
  56.  
  57. /*-----------------------------------------------------------------------------*
  58. |  Miscellaneous defines                                                       |
  59. *-----------------------------------------------------------------------------*/
  60. #define FILENAME_LENGTH    80
  61. #define VMFILE_LENGTH      12
  62. #define VMDISK_LENGTH      3
  63. #define STRING_LEN         10
  64. #define TITLE_LEN          64
  65. #define BUFFER_LENGTH      64
  66. #define HLLAPIBUFFER       128
  67. #define FGString           (GMEM_MOVEABLE | GMEM_ZEROINIT | GMEM_DDESHARE)
  68. #define ID_SEND            0
  69. #define ID_RECV            1
  70.  
  71. /*-----------------------------------------------------------------------------*
  72. |  DDXfer control block                                                        |
  73. *-----------------------------------------------------------------------------*/
  74. typedef struct tagDDXFERINFO
  75. {
  76.    unsigned fAscii   : 1;
  77.    unsigned fCrlf    : 1;
  78.    unsigned fTopmost : 1;
  79.    unsigned fTerm    : 1;
  80.    char     szVMDisk[3];
  81.    char     szSessID[2];
  82.    char     szOptions[128];
  83. } DDXFERINFO, FAR * LPDDXFERINFO;
  84.  
  85. /*-----------------------------------------------------------------------------*
  86. |  Function prototypes                                                         |
  87. *-----------------------------------------------------------------------------*/
  88. int      PASCAL WinMain(HANDLE, HANDLE, LPSTR, int);
  89. LONG FAR PASCAL MainWndProc(HWND, UINT, WPARAM, LPARAM);
  90. LONG FAR PASCAL ListWndProc(HWND, UINT, WPARAM, LPARAM);
  91. BOOL FAR PASCAL About(HWND, UINT, WPARAM, LPARAM);
  92. BOOL FAR PASCAL TextDlgProc(HWND, UINT, WPARAM, LPARAM);
  93. BOOL FAR PASCAL TitleDlgProc(HWND, UINT, WPARAM, LPARAM);
  94.  
  95. VOID     PASCAL SendArgProc(HWND);
  96. VOID     PASCAL SendParmProc(HWND, LPSTR, LPSTR, BOOL);
  97. BOOL     PASCAL GenerateHostFile(LPSTR, LPSTR);
  98. VOID     PASCAL GetOption(LPSTR);
  99.