📄 wincpic.h
字号:
/*****************************************************************************/
/* Values for the send_type */
/*****************************************************************************/
#define CM_BUFFER_DATA (CM_SEND_TYPE) 0
#define CM_SEND_AND_FLUSH (CM_SEND_TYPE) 1
#define CM_SEND_AND_CONFIRM (CM_SEND_TYPE) 2
#define CM_SEND_AND_PREP_TO_RECEIVE (CM_SEND_TYPE) 3
#define CM_SEND_AND_DEALLOCATE (CM_SEND_TYPE) 4
/*****************************************************************************/
/* Values for status_received */
/*****************************************************************************/
#define CM_NO_STATUS_RECEIVED (CM_STATUS_RECEIVED) 0
#define CM_SEND_RECEIVED (CM_STATUS_RECEIVED) 1
#define CM_CONFIRM_RECEIVED (CM_STATUS_RECEIVED) 2
#define CM_CONFIRM_SEND_RECEIVED (CM_STATUS_RECEIVED) 3
#define CM_CONFIRM_DEALLOC_RECEIVED (CM_STATUS_RECEIVED) 4
#define CM_TAKE_COMMIT (CM_STATUS_RECEIVED) 5
#define CM_TAKE_COMMIT_SEND (CM_STATUS_RECEIVED) 6
#define CM_TAKE_COMMIT_DEALLOCATE (CM_STATUS_RECEIVED) 7
/*****************************************************************************/
/* Values for the sync_level */
/*****************************************************************************/
#define CM_NONE (CM_SYNC_LEVEL) 0
#define CM_CONFIRM (CM_SYNC_LEVEL) 1
/*****************************************************************************/
/* Values for maximum sizes of strings and buffers */
/*****************************************************************************/
#define CM_CID_SIZE (8) /* conversation ID */
#define CM_CTX_SIZE (32) /* context ID */
#define CM_LD_SIZE (512) /* log data */
#define CM_MN_SIZE (8) /* mode name */
#define CM_PLN_SIZE (17) /* partner LU name */
#define CM_PW_SIZE (10) /* password */
#define CM_SDN_SIZE (8) /* symbolic destination name */
#define CM_TPN_SIZE (64) /* TP name */
#define CM_UID_SIZE (10) /* userid ID */
/*****************************************************************************/
/* Values for the conversation_security_type (NS/2 compatible) */
/*****************************************************************************/
#define XC_SECURITY_NONE (XC_CONVERSATION_SECURITY_TYPE) 0
#define XC_SECURITY_SAME (XC_CONVERSATION_SECURITY_TYPE) 1
#define XC_SECURITY_PROGRAM (XC_CONVERSATION_SECURITY_TYPE) 2
/*****************************************************************************/
/* Values for the TP_name_type (NS/2 compatible) */
/*****************************************************************************/
#define XC_APPLICATION_TP (XC_TP_NAME_TYPE) 0
#define XC_SNA_SERVICE_TP (XC_TP_NAME_TYPE) 1
/*****************************************************************************/
/* Function prototypes for CPIC call routines */
/*****************************************************************************/
/* Accept_Conversation */
CM_ENTRY cmaccp(unsigned char CM_PTR, /* conversation_ID */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Allocate */
CM_ENTRY cmallc(unsigned char CM_PTR, /* conversation_ID */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Cancel_Conversation */
CM_ENTRY cmcanc(unsigned char CM_PTR, /* conversation_ID */
CM_INT32 CM_PTR); /* return_code *WSNA1*/
/* Confirm */
CM_ENTRY cmcfm(unsigned char CM_PTR, /* conversation_ID */
CM_REQUEST_TO_SEND_RECEIVED CM_PTR, /* request_to_send_rec.. */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Confirmed */
CM_ENTRY cmcfmd(unsigned char CM_PTR, /* conversation_ID */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Deallocate */
CM_ENTRY cmdeal(unsigned char CM_PTR, /* conversation_ID */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Extract_Conversation_State */
CM_ENTRY cmecs(unsigned char CM_PTR, /* conversation_ID */
CM_CONVERSATION_STATE CM_PTR, /* conversation_state */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Extract_Conversation_Type */
CM_ENTRY cmect(unsigned char CM_PTR, /* conversation_ID */
CM_CONVERSATION_TYPE CM_PTR, /* conversation type */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Extract_Mode_Name */
CM_ENTRY cmemn(unsigned char CM_PTR, /* conversation_ID */
unsigned char CM_PTR, /* mode_name */
CM_INT32 CM_PTR, /* mode_name_length */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Extract_Partner_LU_Name */
CM_ENTRY cmepln(unsigned char CM_PTR, /* conversation_ID */
unsigned char CM_PTR, /* partner_LU_name */
CM_INT32 CM_PTR, /* partner_LU_name_len.. */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Extract_Sync_Level */
CM_ENTRY cmesl(unsigned char CM_PTR, /* conversation_ID */
CM_SYNC_LEVEL CM_PTR, /* sync_level */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Extract_TP_Name */
CM_ENTRY cmetpn(unsigned char CM_PTR, /* conversation_ID */
unsigned char CM_PTR, /* TP_name */
CM_INT32 CM_PTR, /* TP_name_length */
CM_INT32 CM_PTR); /* return_code *WSNA1*/
/* Flush */
CM_ENTRY cmflus(unsigned char CM_PTR, /* conversation_ID */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Initialize_Conversation */
CM_ENTRY cminit(unsigned char CM_PTR, /* conversation_ID */
unsigned char CM_PTR, /* sym_dest_name */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Prepare_To_Receive */
CM_ENTRY cmptr(unsigned char CM_PTR, /* conversation_ID */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Receive */
CM_ENTRY cmrcv(unsigned char CM_PTR, /* conversation_ID */
unsigned char CM_PTR, /* buffer */
CM_INT32 CM_PTR, /* requested_length */
CM_DATA_RECEIVED_TYPE CM_PTR, /* data_received */
CM_INT32 CM_PTR, /* received_length */
CM_STATUS_RECEIVED CM_PTR, /* status_received */
CM_REQUEST_TO_SEND_RECEIVED CM_PTR, /* request_to_send_rec.. */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Request_To_Send */
CM_ENTRY cmrts(unsigned char CM_PTR, /* conversation_ID */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Send */
CM_ENTRY cmsend(unsigned char CM_PTR, /* conversation_ID */
unsigned char CM_PTR, /* buffer */
CM_INT32 CM_PTR, /* send_length */
CM_REQUEST_TO_SEND_RECEIVED CM_PTR, /* request_to_send_rec.. */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Send_Error */
CM_ENTRY cmserr(unsigned char CM_PTR, /* conversation_ID */
CM_REQUEST_TO_SEND_RECEIVED CM_PTR, /* request_to_send_rec.. */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Set_Conversation_Type */
CM_ENTRY cmsct(unsigned char CM_PTR, /* conversation_ID */
CM_CONVERSATION_TYPE CM_PTR, /* conversation_type */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Set_Deallocate_Type */
CM_ENTRY cmsdt(unsigned char CM_PTR, /* conversation_ID */
CM_DEALLOCATE_TYPE CM_PTR, /* deallocate_type */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Set_Error_Direction */
CM_ENTRY cmsed(unsigned char CM_PTR, /* conversation_ID */
CM_ERROR_DIRECTION CM_PTR, /* error_direction */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Set_Fill */
CM_ENTRY cmsf(unsigned char CM_PTR, /* conversation_ID */
CM_FILL CM_PTR, /* fill */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Set_Log_Data */
CM_ENTRY cmsld(unsigned char CM_PTR, /* conversation_ID */
unsigned char CM_PTR, /* log_data */
CM_INT32 CM_PTR, /* log_data_length */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Specify_Local_TP_Name */
CM_ENTRY cmsltp(unsigned char CM_PTR, /* TP name */
CM_INT32 CM_PTR, /* TP_name_length */
CM_INT32 CM_PTR); /* return_code *WSNA1*/
/* Set_Processing_Mode */
CM_ENTRY cmspm(unsigned char CM_PTR, /* conversation_ID */
CM_INT32 CM_PTR, /* processing mode */
CM_INT32 CM_PTR); /* return_code *WSNA1*/
/* Set_Mode_Name */
CM_ENTRY cmsmn(unsigned char CM_PTR, /* conversation_ID */
unsigned char CM_PTR, /* mode_name */
CM_INT32 CM_PTR, /* mode_name_length */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Set_Partner_LU_Name */
CM_ENTRY cmspln(unsigned char CM_PTR, /* conversation_ID */
unsigned char CM_PTR, /* partner_LU_name */
CM_INT32 CM_PTR, /* partner_LU_name_len.. */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Set_Prepare_To_Receive_Type */
CM_ENTRY cmsptr(unsigned char CM_PTR, /* conversation_ID */
CM_PREPARE_TO_RECEIVE_TYPE CM_PTR, /* prepare_to_receive_.. */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Set_Receive_Type */
CM_ENTRY cmsrt(unsigned char CM_PTR, /* conversation_ID */
CM_RECEIVE_TYPE CM_PTR, /* receive_type */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Set_Return_Control */
CM_ENTRY cmsrc(unsigned char CM_PTR, /* conversation_ID */
CM_RETURN_CONTROL CM_PTR, /* return_control */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Set_Send_Type */
CM_ENTRY cmsst(unsigned char CM_PTR, /* conversation_ID */
CM_SEND_TYPE CM_PTR, /* send_type */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Set_Sync_Level */
CM_ENTRY cmssl(unsigned char CM_PTR, /* conversation_ID */
CM_SYNC_LEVEL CM_PTR, /* sync_level */
CM_RETURN_CODE CM_PTR); /* return_code */
/* Set_TP_name */
CM_ENTRY cmstpn(unsigned char CM_PTR, /* conversation_ID */
unsigned char CM_PTR, /* TP_name */
CM_INT32 CM_PTR, /* TP_name_legth */
CM_RETURN_CODE CM_PTR); /* return_code */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -