This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/Borland/BCC55/Include/trnsdt.h

93 lines
3 KiB
C
Raw Permalink Blame History

#pragma option push -b -a8 -pc -A- /*P_O_Push*/
/************************************************************************/
/* */
/* Header File: Trnsdt.h<>iDOS LIB + Windows DLL/Win16 & Win32) */
/* */
/* (C) Copyright Microsoft Corporation 1993-1996 */
/* */
/************************************************************************/
#if defined(WIN32)
#pragma pack(4)
#endif
/****************************************************************************
Definitions for MS-DOS
*****************************************************************************/
#if (!defined(WINDOWS) && !defined(WIN32))
#define FALSE 0
#define TRUE 1
#define FAR _far
#define VOID void
typedef unsigned char BYTE;
typedef BYTE FAR* LPBYTE;
typedef unsigned short WORD;
typedef unsigned long DWORD;
#endif
/****************************************************************************
PASSSTRUCT Structure
*****************************************************************************/
typedef struct tagPassParm {
WORD parm_length; /* Parameter Length(input) */
WORD exit_code; /* Exit Code(output) */
WORD in_length; /* Input Buffer Length(input) */
LPBYTE in_addr; /* Input Buffer Address(input) */
WORD out_length; /* Output Buffer Length(in/out) */
LPBYTE out_addr; /* Output Buffer Address(input) */
WORD trns_id; /* Conversion ID(input) */
WORD in_page; /* Input Code Page(input) */
WORD out_page; /* Output Code Page */
WORD option; /* Option(at calling) */
WORD type; /* DBCS, EITHER, BOTH */
} PASSSTRUCT;
/****************************************************************************
Function declarations
*****************************************************************************/
#if defined(__cplusplus)
extern "C" {
#endif
#if (!defined(WINDOWS) && !defined(WIN32))
WORD TrnsDt(PASSSTRUCT * PassParm);
#else
WORD WINAPI TrnsDt(PASSSTRUCT far* PassParm);
#endif
#if defined(__cplusplus)
}
#endif
/****************************************************************************
Return Codes
*****************************************************************************/
#define NO_ERR 0
#define ERR_FILE_NOT_FOUND 2
#define ERR_INVALID_PARAMETER 87
#define ERR_BUFFER_OVERFLOW 111
#define ERR_MEMORY_ALLOCATE 150
/****************************************************************************
Type codes
*****************************************************************************/
#define SNA_DBCS 0x0100
#define SNA_EITHER 0x0200
#define SNA_BOTH 0x0400
/****************************************************************************
Option bitmasks
*****************************************************************************/
#define OP_GET_SOSI 0x0001
#define OP_DB_START 0x0002
#define OP_IBM_TABLE 0x0004
#define OP_BLANK_PAD 0x0008
#define OP_TRUNCATE 0x0010
#define OP_OMITNULL 0x0020
#define OP_SET_SOSI 0x0100
#if defined(WIN32)
#pragma pack()
#endif
#pragma option pop /*P_O_Pop*/