home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / trnsdt.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  2KB  |  68 lines

  1. /************************************************************************/
  2. /*                                    */
  3. /*    Header File:    Trnsdt.hüiDOS LIB + Windows DLL/Win16 & Win32)    */
  4. /*                                    */
  5. /*    (C) Copyright Microsoft Corporation 1993-1996            */
  6. /*                                    */
  7. /************************************************************************/
  8. #if defined(WIN32)
  9. #pragma    pack(4)
  10. #endif
  11. /****************************************************************************
  12.     Definitions for MS-DOS
  13. *****************************************************************************/
  14. #if (!defined(WINDOWS) && !defined(WIN32))
  15. #define    FALSE        0
  16. #define    TRUE        1
  17. #define FAR        _far
  18. #define VOID        void
  19. typedef    unsigned char    BYTE;
  20. typedef BYTE FAR*    LPBYTE;
  21. typedef    unsigned short    WORD;
  22. typedef    unsigned long    DWORD;
  23. #endif
  24.  
  25. /****************************************************************************
  26.     PASSSTRUCT Structure
  27. *****************************************************************************/
  28. typedef    struct    tagPassParm  {
  29.     WORD    parm_length;        /* Parameter Length(input)    */
  30.     WORD    exit_code;        /* Exit Code(output)        */
  31.     WORD    in_length;        /* Input Buffer Length(input)    */
  32.     LPBYTE    in_addr;        /* Input Buffer Address(input)    */
  33.     WORD    out_length;        /* Output Buffer Length(in/out)    */
  34.     LPBYTE    out_addr;        /* Output Buffer Address(input)    */
  35.     WORD    trns_id;        /* Conversion ID(input)        */
  36.     WORD    in_page;        /* Input Code Page(input)    */
  37.     WORD    out_page;        /* Output Code Page         */
  38.     WORD    option;            /* Option(at calling)        */
  39. }    PASSSTRUCT;
  40.  
  41. /****************************************************************************
  42.     Function declarations
  43. *****************************************************************************/
  44. #if defined(__cplusplus)
  45. extern "C" {
  46. #endif
  47. #if (!defined(WINDOWS) && !defined(WIN32))
  48. WORD TrnsDt(PASSSTRUCT * PassParm);
  49. #else
  50. WORD WINAPI TrnsDt(PASSSTRUCT far* PassParm);
  51. #endif
  52. #if defined(__cplusplus)
  53. }
  54. #endif
  55.  
  56. /****************************************************************************
  57.     Retuen Codes
  58. *****************************************************************************/
  59. #define    NO_ERR            0
  60. #define    ERR_FILE_NOT_FOUND    2
  61. #define    ERR_INVALID_PARAMETER    87
  62. #define    ERR_BUFFER_OVERFLOW    111
  63. #define    ERR_MEMORY_ALLOCATE    150
  64.  
  65. #if defined(WIN32)
  66. #pragma    pack()
  67. #endif
  68.