📄 wincsv.h
字号:
struct set_user_log_queue
{
unsigned short opcode; /* Verb operation code */
unsigned char opext; /* Reserved. */
unsigned char reserv2; /* Reserved. */
unsigned short primary_rc; /* Primary RETURN_CODE */
unsigned long secondary_rc; /* Secondary RETURN_CODE */
unsigned char reserv3[8]; /* Reserved. */
unsigned char queue_name[64]; /* Reserved. */
unsigned char forward; /* Reserved. */
unsigned char suppress; /* Reserved. */
unsigned char selection; /* Reserved. */
unsigned short numbers[10]; /* Reserved. */
};
struct copy_trace_to_file
{
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 file_name[64]; /* Trace file name. */
unsigned char file_option; /* File options. New or overwrite. */
unsigned char reserv4[12]; /* Address at which supplied data resides.*/
};
/*****************************************************************************/
/* Return the packing to what the user set */
/*****************************************************************************/
#ifdef WIN32
#pragma pack()
#endif
/*****************************************************************************/
/* ------------------------- macro definitions ----------------------------- */
/*****************************************************************************/
/*************************************************************************W32*/
/* define type conversion macros *W32*/
/*************************************************************************W32*/
#ifndef CSVFLIPSET
#define CSVFLIPSET
#define CSV_LO_UC(w) ((unsigned char)(((unsigned short)(w)) & 0xFF)) /*W32*/
#define CSV_HI_UC(w) ((unsigned char)(((unsigned short)(w) >> 8) \
& 0xff)) /*W32*/
#define CSV_MAKUS(l, h) (((unsigned short)(l)) | \
((unsigned short)(h)) << 8) /*W32*/
#define CSV_MAKUL(l, h) ((unsigned long)(((unsigned short)(l))| \
((unsigned long)((unsigned short)(h))) << 16))/*W32*/
#define CSV_LO_US(l) ((unsigned short)(((unsigned long)(l)) & 0xFFFF)) /*W32*/
#define CSV_HI_US(l) ((unsigned short)(((unsigned long)(l) >> 16) \
& 0xffff)) /*W32*/
/*W32*/
/*************************************************************************W32*/
/* IF non-Intel THEN *W32*/
/* set flipping to nop for now *W32*/
/*************************************************************************W32*/
#ifdef NON_INTEL_BYTE_ORDER /*W32*/
#define CSV_FLIPI(X) (X) /*W32*/
#define CSV_FLIPL(X) (X) /*W32*/
/*W32*/
/*************************************************************************W32*/
/* ELSE (Intel environment) *W32*/
/* define flipping macros *W32*/
/*************************************************************************W32*/
#else /*W32*/
#define CSV_FLIPI(X) CSV_MAKUS(CSV_HI_UC(X),CSV_LO_UC(X)) /*W32*/
#define CSV_FLIPL(X) CSV_MAKUL(CSV_FLIPI(CSV_HI_US(X)), \
CSV_FLIPI(CSV_LO_US(X))) /*W32*/
#endif /*W32*/
#endif
/*****************************************************************************/
/* Verb op codes. */
/*****************************************************************************/
#define SV_CONVERT CSV_FLIPI(0x1A00)
#define SV_DEFINE_TRACE CSV_FLIPI(0x1D00)
#define SV_GET_CP_CONVERT_TABLE CSV_FLIPI(0x1900)
#define SV_LOG_MESSAGE CSV_FLIPI(0x1F00)
#define SV_TRANSFER_MS_DATA CSV_FLIPI(0x1C00)
#define SV_SET_USER_LOG_QUEUE CSV_FLIPI(0x4B00)
#define SV_COPY_TRACE_TO_FILE CSV_FLIPI(0x4C00)
#define SV_DEFINE_DUMP CSV_FLIPI(0x4D00)
/*****************************************************************************/
/* Parameters for the Common Service Verbs. */
/*****************************************************************************/
#define SV_ADD 0
#define SV_CHANGE 1
#define SV_IGNORE 0
#define SV_NO_ADD 1
#define SV_NO_SEND 1
#define SV_SEND 0
#define SV_A 0x01
#define SV_AE 0x00
#define SV_ALL 0x01
#define SV_ALERT_SUBVECTORS 0x02
#define SV_ASCII_TO_EBCDIC 0x00
#define SV_EBCDIC_TO_ASCII 0x01
#define SV_FORWARD 0x02
#define SV_INTRV 0x00
#define SV_G 0x02
#define SV_LOG 0x00
#define SV_LOGS 0x00
#define SV_NMVT 0x01
#define SV_NO 0x00
#define SV_NO_INTRV 0x01
#define SV_NO_LOG 0x01
#define SV_NONE 0x00
#define SV_OFF 0x00
#define SV_ON 0x01
#define SV_PDSTATS_SUBVECTORS 0x03
#define SV_ROUND_TRIP 0x01
#define SV_SOME 0x00
#define SV_SUBSTITUTE 0x00
#define SV_SYSTEM_MESSAGES 0x01
#define SV_USER_DEFINED 0x00
#define SV_USER_MESSAGES 0x02
#define SV_YES 0x01
/****************************************************************************/
/* Bit masks for enabling and disabling functions */
/****************************************************************************/
#define SV_BIT0 0x80 /* x....... */
#define SV_BIT1 0x40 /* .x...... */
#define SV_BIT2 0x20 /* ..x..... */
#define SV_BIT3 0x10 /* ...x.... */
#define SV_BIT4 0x08 /* ....x... */
#define SV_BIT5 0x04 /* .....x.. */
#define SV_BIT6 0x02 /* ......x. */
#define SV_BIT7 0x01 /* .......x */
/*****************************************************************************/
/* Return Codes from the Common Service Verbs. */
/*****************************************************************************/
#define SV_COMM_SUBSYSTEM_NOT_LOADED CSV_FLIPI(0xF012)
#define SV_CONFIG_FILE_ERROR CSV_FLIPI(0x0032)
#define SV_INVALID_VERB CSV_FLIPI(0xFFFF)
#define SV_INVALID_VERB_SEGMENT CSV_FLIPI(0xF008)
#define SV_OK CSV_FLIPI(0x0000)
#define SV_PARAMETER_CHECK CSV_FLIPI(0x0001)
#define SV_STATE_CHECK CSV_FLIPI(0x0002)
#define SV_UNEXPECTED_DOS_ERROR CSV_FLIPI(0xF011)
#define SV_CANCELLED CSV_FLIPI(0x0021) /*0998*/
#define SV_SERVER_RESOURCE_NOT_FOUND CSV_FLIPI(0xF024) /*0998*/
#define SV_SERVER_RESOURCES_LOST CSV_FLIPI(0xF026) /*0998*/
#define SV_THREAD_BLOCKING CSV_FLIPI(0xF006) /*0998*/
#define SV_CONVERSION_ERROR CSV_FLIPL(0x00000406)
#define SV_DATA_EXCEEDS_RU_SIZE CSV_FLIPL(0x00000302)
#define SV_INVALID_CHARACTER_SET CSV_FLIPL(0x00000402)
#define SV_INVALID_CHAR_NOT_FOUND CSV_FLIPL(0x00000630)
#define SV_INVALID_DATA_SEGMENT CSV_FLIPL(0x00000006)
#define SV_INVALID_DATA_TYPE CSV_FLIPL(0x00000303)
#define SV_INVALID_DIRECTION CSV_FLIPL(0x00000401)
#define SV_INVALID_FIRST_CHARACTER CSV_FLIPL(0x00000404)
#define SV_INVALID_FORWARD CSV_FLIPL(0x00000700)
#define SV_INVALID_MESSAGE_ACTION CSV_FLIPL(0x00000621)
#define SV_INVALID_NMVT_ERROR CSV_FLIPL(0x00000304)
#define SV_INVALID_QUEUE CSV_FLIPL(0x00000704)
#define SV_INVALID_RESET_TRACE CSV_FLIPL(0x0000062F)
#define SV_INVALID_SELECTION CSV_FLIPL(0x00000702)
#define SV_INVALID_SET CSV_FLIPL(0x00000624)
#define SV_INVALID_SOURCE_CODE_PAGE CSV_FLIPL(0x00000631)
#define SV_INVALID_STORAGE_SIZE CSV_FLIPL(0x00000627)
#define SV_INVALID_SUPPRESS CSV_FLIPL(0x00000701)
#define SV_INVALID_TARGET_CODE_PAGE CSV_FLIPL(0x00000632)
#define SV_PD_MENUS_IN_PROGRESS CSV_FLIPL(0x0000062E)
#define SV_QUEUE_ALREADY_IN_EFFECT CSV_FLIPL(0x00000705)
#define SV_SSCP_PU_SESSION_NOT_ACTIVE CSV_FLIPL(0x00000301)
#define SV_TABLE_ERROR CSV_FLIPL(0x00000405)
#define SV_TOO_HIGH_A_NUMBER CSV_FLIPL(0x00000703)
#define SV_SERVER_CONN_FAILURE CSV_FLIPL(0x030000AB) /*0998**RCFX*/
/*****************************************************************************/
/* The following constants are needed for EE12 enhancements but could not */
/* be found in the EE header file. */
/*****************************************************************************/
#define SV_NEW 0x00
#define SV_OVERWRITE 0x01
#define SV_OUTPUT_DEVICE_FULL CSV_FLIPI(0x0031)
#define SV_FILE_ALREADY_EXISTS CSV_FLIPI(0x0030)
#define SV_TRACE_NOT_STOPPED CSV_FLIPL(0x0000062A)
#define SV_INVALID_FILE_OPTION CSV_FLIPL(0x0000062B)
#define SV_TRACE_BUFFER_EMPTY CSV_FLIPL(0x0000062C)
#ifdef __cplusplus
}
#endif
#pragma option pop /*P_O_Pop*/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -