⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 trnsdt.h

📁 希望我上传的这些东西可以对搞编程的程序员有点小小的帮助!谢谢!
💻 H
字号:
#pragma option push -b -a8 -pc -A- /*P_O_Push*/
/************************************************************************/
/*									*/
/*	Header File:	Trnsdt.h乮DOS 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*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -