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

  1. //******************************************************************************
  2. //
  3. //  File name   : SPL2FILE.H
  4. //
  5. //  Description : Defines constans and function prototypes
  6. //
  7. //  FUNCTIONS:
  8. //
  9. //  COMMENTS:
  10. //
  11. //  Copyright  (C) 1993, 1996 IBM Corporation
  12. //                        All rights reserved.
  13. //
  14. //******************************************************************************
  15.  
  16. #define uchar           unsigned char
  17.  
  18. //************* Global function defines
  19.  
  20. //------------------------------------------------------------------------------
  21. // SPWINMAN.C
  22. //------------------------------------------------------------------------------
  23. int      PASCAL WinMain                  ( HANDLE, HANDLE, LPSTR, int );
  24. BOOL            RegisterApplicationClass ( HANDLE );
  25. BOOL            InitInstance             ( HANDLE, int );
  26. long FAR PASCAL SpoolToFileWndProc       ( HWND, UINT, WPARAM, LPARAM );
  27. BOOL FAR PASCAL PCFilenameDialog         ( HWND, UINT, WPARAM, LPARAM );
  28. BOOL FAR PASCAL About                    ( HWND, UINT, WPARAM, LPARAM );
  29.  
  30. //------------------------------------------------------------------------------
  31. // SPSPOOL.C
  32. //------------------------------------------------------------------------------
  33. void            StartSpoolToFile         ( HWND );
  34. void            FSM_SpoolToFile          ( BYTE, ATOM, HANDLE );
  35.  
  36. //------------------------------------------------------------------------------
  37. // SPCONFG.C
  38. //------------------------------------------------------------------------------
  39. void            ConfigureSpoolToFile     ( HWND );
  40. BOOL FAR PASCAL SpoolToFileOptionsDialog (HWND, UINT, WPARAM, LPARAM );
  41.  
  42. //------------------------------------------------------------------------------
  43. // SPSDDE.C
  44. //------------------------------------------------------------------------------
  45. BOOL FAR        InitDDE            ( void );
  46. BOOL FAR        SpDDEInitiate      ( HWND, UINT, WPARAM, LPARAM );
  47. BOOL FAR        SpDDEAck           ( HWND, UINT, WPARAM, LPARAM );
  48. BOOL FAR        SpDDEData          ( HWND, UINT, WPARAM, LPARAM );
  49. BOOL FAR        SpDDERequest       ( HWND, UINT, WPARAM, LPARAM );
  50. BOOL FAR        SpDDETerminate     ( HWND, UINT, WPARAM, LPARAM );
  51. void            PrepGetPartialPs   ( int, int, int );
  52. void            RequestGetPs       ( void );
  53. void            RequestGetPartPs   ( void );
  54. void            ExecuteKeystrokes  ( LPSTR );
  55. void            SetCursorPosition  ( int, int );
  56.  
  57. //------------------------------------------------------------------------------
  58. // SPPRSUB.C
  59. //------------------------------------------------------------------------------
  60. //BOOL            DisplayAbortDialog    ( HWND );       // Display abort dialog
  61. HWND            DisplayAbortDialog    ( HWND );       // Display abort dialog
  62. BOOL            DestroyAbortDialog    ( HWND, HWND ); // Destroy abort dialog
  63. BOOL FAR PASCAL AbortDialogProc       ( HWND, UINT, WPARAM, LPARAM );
  64. BOOL            AddLineToList         ( HANDLE );     // Add line to list
  65. BOOL            InitSession           ( void );
  66. void            TerminateSession      ( void );
  67. BOOL            FSM_Event             ( BYTE, ATOM, HANDLE );
  68.  
  69. //------------------------------------------------------------------------------
  70. // SPSUB1.C
  71. //------------------------------------------------------------------------------
  72. BOOL            TerminateConversation ( void );
  73. BOOL            DDEPostMessage        ( HWND, UINT, WPARAM, LPARAM );
  74. void            CenterDialogOnScreen  ( HWND );
  75. int             OffsetInPs            ( int, int );   // return offset in PS
  76. void            GetStartEndCol        ( LPSTR, LPINT, LPINT );
  77. BOOL            IsDbcsHiByte          ( BYTE );
  78. BOOL            IsSoSi                ( BYTE );
  79.  
  80. // ************* Dialog Identifiers
  81.  
  82. #define ID_ABOUT     6001
  83. #define ID_HELP      6002
  84. #define ID_SPOOL     6003
  85. #define ID_ZCONFG    6004
  86. #define ID_EDIT1     6005
  87. #define ID_CHECKBOX1 6006
  88. #define ID_RADIO1    6007
  89. #define ID_RADIO2    6008
  90.  
  91. #define ID_IGNORE  -1
  92.  
  93. // ************* Resource Identifiers
  94.  
  95. #define SPMENU     9000
  96. #define SPICON     9001
  97. #define ABOUTBOX   9002
  98. #define ABORTBOX   9003
  99. #define PCFILENAME 9004
  100. #define SPOPTS     9005
  101.  
  102. //************* Load String Identifiers
  103.  
  104. #define LS_ERROR1_TEXT          1
  105. #define LS_ERROR2_TEXT          2
  106. #define LS_ERROR3_TEXT          3
  107. #define LS_ERROR4_TEXT          4
  108. #define LS_TITLE_TEXT           5
  109. #define LS_DDE_TOKENS           6
  110. #define LS_16STR_FORMAT         7
  111. #define LS_ABORT_TITLEF         8
  112. #define LS_OPTIONS_TAG          9
  113.  
  114. //************* MISC
  115.  
  116. #define uchar           unsigned char
  117.  
  118. #define DDE_GLOBAL  ( GHND | GMEM_DDESHARE | GMEM_MOVEABLE | GMEM_ZEROINIT )
  119.  
  120. #define DDE_ACK         0x8000
  121. #define DDE_NACK        0x0000       /* Negative ACK          */
  122. #define DDE_NACK_BUSY   0x4000       /* Negative ACK/BUSY     */
  123.  
  124. #define WM_USER_END     (WM_USER +  1 )
  125. #define WM_USER_ERROR   (WM_USER +  2 )
  126. #define WM_USER_ABORT   (WM_USER +  3 )
  127. #define WM_USER_CONT    (WM_USER +  4 )
  128. #define WM_USER_BREAK   (WM_USER +  5 )
  129.  
  130. //******************************************************************************
  131. //
  132. // MISC
  133. //
  134. //******************************************************************************
  135.  
  136. #define GMEM_GLOBAL     ( GHND | GMEM_DDESHARE | GMEM_MOVEABLE | GMEM_ZEROINIT )
  137.  
  138. #define SPACE_CHAR      ' '
  139. #define NULL_CHAR       '\0'
  140. #define WS_FIXEDWINDOW  ( WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZE | WS_MINIMIZEBOX )
  141. #define VERY_LIGHT_GRAY ( (DWORD) 0x00C0C0C0 )
  142.  
  143. #define STATIC_STYLE    ( SS_LEFT | WS_VISIBLE | WS_CHILD )
  144.  
  145. #define SPOOL_TO_FILE   1
  146.  
  147. #define EV_DATA         0
  148. #define EV_ACK          1
  149. #define EV_NACK         2
  150. #define EV_END          3
  151. #define EV_ERROR        4
  152. #define EV_ABORT        5
  153. #define EV_CONT         6
  154. #define EV_BRK          7
  155.  
  156. #define MAX_ROW        24
  157. #define MAX_COL        80
  158.