📄 wincsv.h
字号:
/* Copyright Data Connection Ltd. 1989 */
/* acssvcc.h */
/* Copyright (c) 1989 Microsoft Corporation. All rights reserved. */
/*****************************************************************************/
/* Function prototypes for the Common Service Verbs */
/*****************************************************************************/
/* 3054 13/11/91 SW Add pascal entry point function prototype */
/* W32 15/04/92 CD Add WIN32 support */
/* WCSV 06/11/92 SW Add prototype for WinCSV entry points */
/* 0998 11/06/93 SP Add Async Transfer_MS_Data + wait for Host's Rsp */
/* WCSV2 15/09/93 PP Add WinCSV return codes */
/* RCFX2 26/07/94 SF Ensure Secondary return code is a ULONG */
/*****************************************************************************/
#ifndef ACSSVCCH_INCLUDED
#pragma option push -b -a8 -pc -A- /*P_O_Push*/
#define ACSSVCCH_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
#if (defined(WIN32) || defined(WINDOWS))
#define CSVENTRY WINAPI
#else
#define CSVENTRY far pascal
#endif
#if (defined(WIN32) || defined(WINDOWS))
#define WCSVDESCRIPTION_LEN 127 /*0998*/
typedef struct tagWCSVDATA /*0998*/
{ /*0998*/
WORD wVersion; /*0998*/
char szDescription[WCSVDESCRIPTION_LEN+1]; /*0998*/
} WCSVDATA, * PWCSVDATA, FAR * LPWCSVDATA; /*0998*/
extern void CSVENTRY WinCSV(long); /*0998*/
extern HANDLE CSVENTRY WinAsyncCSV(HWND, long); /*0998*/
extern int CSVENTRY WinCSVCleanup(void); /*0998*/
extern int CSVENTRY WinCSVStartup(WORD wVersion, LPWCSVDATA lpData);/*0998*/
extern int CSVENTRY GetCsvReturnCode (struct svc_hdr FAR *, UINT, unsigned char FAR *);
/*WCSV2***********************************************************************/
/* WinCSV return codes */
/*****************************************************************************/
#define WCSVINVALID CSV_FLIPI(0x01F0) /* invalid parameter */
#define WCSVSYSNOTREADY CSV_FLIPI(0x03F0) /* subsystem not started */
#define WCSVVERNOTSUPPORTED CSV_FLIPI(0x04F0) /* requested ver not supported */
#endif
extern void CSVENTRY ACSSVC(long);
extern void CSVENTRY ACSSVC_C(long);
extern void CSVENTRY ACSSVC_P(long); /*3054*/
/*****************************************************************************/
/* Ensure the correct packing of structures */
/*****************************************************************************/
#ifdef WIN32
#pragma pack(4)
#endif
/*****************************************************************************/
/* VCB structures */
/*****************************************************************************/
struct svc_hdr
{
unsigned short opcode; /* Verb identifying operation code. */
unsigned char opext; /* Reserved */
unsigned char reserv2; /* Reserved. */
unsigned short primary_rc; /* Primary return code from verb. */
unsigned long secondary_rc; /* Secondary (qualifying) return code. */
};
struct convert
{
unsigned short opcode; /* Verb identifying operation code. */
unsigned char opext; /* Reserved. */
unsigned char reserv2; /* Reserved. */
unsigned short primary_rc; /* Primary return code from verb. */
unsigned long secondary_rc; /* Secondary (qualifying) return code. */
unsigned char direction; /* Direction of conversion - ASCII to */
/* EBCDIC or vice-versa. */
unsigned char char_set; /* Character to use for the conversion */
/* A, AE, or user-defined G. */
unsigned short len; /* Length of string to be converted. */
#ifdef WIN32
unsigned char *source; /* Pointer to string to be converted. */
unsigned char *target; /* Address to put converted string at. */
#else
unsigned char far *source; /* Pointer to string to be converted. */
unsigned char far *target; /* Address to put converted string at. */
#endif
};
struct define_trace
{
unsigned short opcode; /* Verb identifying operation code. */
unsigned char opext; /* Reserved. */
unsigned char reserv2; /* Reserved. */
unsigned short primary_rc; /* Primary return code from verb. */
unsigned long secondary_rc; /* Secondary (qualifying) return code. */
unsigned char reserv3[8]; /* Reserved. */
unsigned char dt_set; /* Trace state to be set (on/off). */
/***************************************************************************/
/* In the following fields, used for specifying which sorts of tracing is */
/* required, only the most significant bit is currently used. Bits 1 to 7 */
/* are reserved. Bit 0 can be set to 'ignore' or to 'change'. */
/***************************************************************************/
unsigned char appc; /* Tracing for APPC. */
unsigned char reserv4; /* Reserved. */
unsigned char srpi; /* Tracing for SRPI. */
unsigned char sdlc; /* Reserved. */
unsigned char tkn_rng_dlc; /* Reserved. */
unsigned char pcnet_dlc; /* Reserved. */
unsigned char dft; /* Reserved. */
unsigned char acdi; /* Reserved. */
unsigned char reserv5; /* Reserved. */
unsigned char comm_serv; /* Tracing for Comm_Serv_API. */
unsigned char ehllapi; /* Reserved. */
unsigned char x25_api; /* Reserved. */
unsigned char x25_dlc; /* Reserved. */
unsigned char twinax; /* Reserved. */
unsigned char reserv6; /* Reserved. */
unsigned char lua_api; /* Reserved. */
unsigned char etherand; /* Reserved. */
unsigned char subsym; /* Reserved. */
unsigned char reserv7[8]; /* Reserved. */
unsigned char reset_trc; /* Reserved. */
unsigned short trunc; /* Truncation size for trace records. */
unsigned short strg_size; /* Reserved. */
unsigned char reserv8[1]; /* Reserved. */
unsigned char phys_link[8]; /* Reserved. */
unsigned char reserv9[56]; /* Reserved. */
};
struct get_cp_convert_table
{
unsigned short opcode; /* Verb identifying operation code. */
unsigned char opext; /* Reserved. */
unsigned char reserv2; /* Reserved. */
unsigned short primary_rc; /* Primary return code from verb. */
unsigned long secondary_rc; /* Secondary (qualifying) return code. */
unsigned short source_cp; /* Source code page for conversion table. */
unsigned short target_cp; /* Target code page for conversion table. */
#ifdef WIN32
unsigned char *conv_tbl_addr;/* Address to put conversion table at. */
#else
unsigned char far *conv_tbl_addr;/* Address to put conversion table at. */
#endif
unsigned char char_not_fnd; /* Character not found option: either */
/* substitute character or round trip. */
unsigned char substitute_char; /* Substitute character to use. */
};
struct log_message
{
unsigned short opcode; /* Verb identifying operation code. */
unsigned char opext; /* Reserved. */
unsigned char reserv2; /* Reserved. */
unsigned short primary_rc; /* Primary return code from verb. */
unsigned long secondary_rc; /* Secondary (qualifying) return code. */
unsigned short msg_num; /* Number of message to log. */
unsigned char origntr_id[8]; /* ID of the originator of the message. */
unsigned char msg_file_name[3]; /* Message file to search for the required*/
/* message number. */
unsigned char msg_act; /* Message action - whether to inform */
/* operator. */
unsigned short msg_ins_len; /* Length of data for insertion in msg. */
#ifdef WIN32
unsigned char *msg_ins_ptr; /* Address of data for insertion in msg. */
#else
unsigned char far *msg_ins_ptr; /* Address of data for insertion in msg. */
#endif
};
struct transfer_ms_data
{
unsigned short opcode; /* Verb identifying operation code. */
unsigned char data_type; /* Data type supplied to the verb - can */
/* be: user-defined; alert subvectors; */
/* pdstats subvectors; NMVT. */
unsigned char reserv2; /* Reserved. */
unsigned short primary_rc; /* Primary return code from verb. */
unsigned long secondary_rc; /* Secondary (qualifying) return code. */
unsigned char options; /* Verb options. Bits 3 - 7 are reserved. */
/* Bit 0: Time stamp subvector option. */
/* Bit 1: Product set id subvector option.*/
/* Bit 2: Option to send NMVT to SSCP. */
/* Bit 3: Option for local logging. */
unsigned char reserv3; /* Reserved. */
unsigned char origntr_id[8]; /* ID of originator of NMVT. */
unsigned short dlen; /* Length of data supplied to verb. */
#ifdef WIN32
unsigned char *dptr; /* Address at which supplied data resides.*/
#else
unsigned char far *dptr; /* Address at which supplied data resides.*/
#endif
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -