📄 winappc.h
字号:
/* Copyright Data Connection Ltd. 1989 */
/*****************************************************************************/
/* */
/*****************************************************************************/
/* winappc.h */
/* Copyright (c) 1989, Microsoft Corporation. All rights reserved. */
/*****************************************************************************/
/* APPC constant, vcb and function definitions */
/*****************************************************************************/
/*****************************************************************************/
/* Change History */
/* CPIC 07/05/91 GH Add get_conv_state verb, and support for fully */
/* qualified network names in the (mc)allocate VCBs */
/* CPIC 03/06/91 GH Changed FQname support. Name now '.' separated. */
/* CPIC 14/06/91 GH Added constants for the conv_state parameter */
/* SCSN 08/08/91 GH Fixed the AP_SEND_DATA_CONFIRM_SYNC_NONE defn. */
/* CPIC 22/08/91 GH Removed the FQ-flag in (mc)allocate VCBs */
/* 9997 23/10/91 AD Change TP_ENDED end_type field to EE friendly 'type' */
/* 3054 13/11/91 SW Add pascal entry point function prototype */
/* xxxx 02/01/92 SW Update what_rcvd values */
/* CNOS 17/01/92 PP Add opcode for CNOS. NS/2 allows management verbs */
/* to go through APPC entry point */
/* W32 24/02/92 AD Win32 port */
/* CPIC 24/02/92 AD Move CPIC specific constants and types */
/* W32 14/04/92 AD remove far keyword for Win32, add pack pragma */
/* DISP 14/04/92 TB Add definition for DISPLAY opcode. */
/* DSP2 04/06/92 TB Check to see if appc_c.h already included mgmt hdrs */
/* ES10 03/11/92 SP Add support for ES 1.0 APPC extensions */
/* WSNA2 27/10/92 CD Changes for WinSNA */
/* DFLU 18/02/93 SP Add rc for Bad Partner LU Alias */
/* IBM1 29/06/93 NGR Add #defines and typedefs from ES include files */
/* EVNT 14/12/93 DK Allow completion to be notified by setting an event */
/* GRC 20/01/94 DK Add definition of GetAppcReturnCode */
/* RPRP 24/10/95 JD Implement TEST_RTS_AND_POST */
/* SYNC 25/03/96 SGF Syncpoint Support */
/* APOR 02/12/96 DA Implement POST_ON_RECEIPT */
/* SELD 02/01/97 DA Send error log data on mapped conversations */
/* RELD 02/01/97 DA Recv error log data */
/* 5178 02/25/97 SGF Single signon for priviledged proxy */
/* 7239 03/05/97 SGF Make single signon strings UNICODE */
/* ACTS 05/01/96 RW ACTIVATE_SESSION & DEACTIVATE_SESSION support */
/* 2PC 09/27/98 DP Add ENLIST verb, return codes for 2-phase commit */
/* 3669 02/18/99 RW Support Attach Manager for IBM DB2 */
/* IOCP 14/05/99 PH Add IOCP support. */
/*****************************************************************************/
/*****************************************************************************/
/* If winappc.h not already included then define APPC_C_INCLUDED to avoid it */
/* being included again. This is needed as winappc.h is included in the */
/* management header acsmgtc.h. *DSP2* */
/*****************************************************************************/
#ifndef APPC_C_INCLUDED
#pragma option push -b -a8 -pc -A- /*P_O_Push*/
#define APPC_C_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
/*****************************************************************************/
/* Set WINSNA if this is Win16 or Win32 *WSNA2*/
/*****************************************************************************/
#if ( defined(WINDOWS) || defined(WIN32) )
#define WINSNA
#endif
/* ========================================================================= */
/*****************************************************************************/
/* ------------------------- macro definitions ----------------------------- */
/*****************************************************************************/
/*************************************************************************W32*/
/* for Win32 environment: *W32*/
/* - ensure correct packing *W32*/
/* - remove references to far *W32*/
/*************************************************************************W32*/
#ifdef WIN32 /*W32*/
/*W32*/
#pragma pack(4) /*W32*/
#define far /*W32*/
/*W32*/
#endif /*W32*/
/*************************************************************************W32*/
/* define type conversion macros *W32*/
/*************************************************************************W32*/
#define APPC_LO_UC(w) ((unsigned char)(((unsigned short)(w)) & 0xFF))/*W32*/
#define APPC_HI_UC(w) ((unsigned char)(((unsigned short)(w) >> 8) \
& 0xff)) /*W32*/
#define APPC_MAKUS(l, h) (((unsigned short)(l)) | \
((unsigned short)(h)) << 8) /*W32*/
#define APPC_MAKUL(l, h) ((unsigned long)(((unsigned short)(l))| \
((unsigned long)((unsigned short)(h))) << 16))/*W32*/
#define APPC_LO_US(l) ((unsigned short)(((unsigned long)(l)) & 0xFFFF))/*W32*/
#define APPC_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 APPC_FLIPI(X) (X) /*W32*/
#define APPC_FLIPL(X) (X) /*W32*/
/*W32*/
/*************************************************************************W32*/
/* ELSE (Intel environment) *W32*/
/* define flipping macros *W32*/
/*************************************************************************W32*/
#else /*W32*/
#define APPC_FLIPI(X) APPC_MAKUS(APPC_HI_UC(X),APPC_LO_UC(X)) /*W32*/
#define APPC_FLIPL(X) APPC_MAKUL(APPC_FLIPI(APPC_HI_US(X)), \
APPC_FLIPI(APPC_LO_US(X))) /*W32*/
#endif /*W32*/
#ifdef WIN32
#define far
#endif
/* ========================================================================= */
/*****************************************************************************/
/* ------------------------- verb opcodes ---------------------------------- */
/*****************************************************************************/
/*****************************************************************************/
/* control verbs */
/*****************************************************************************/
#define AP_TP_STARTED APPC_FLIPI(0x1400) /* X'1400' */
#define AP_RECEIVE_ALLOCATE APPC_FLIPI(0x1600) /* X'1600' */
#define AP_TP_ENDED APPC_FLIPI(0x1300) /* X'1300' */
/*****************************************************************************/
/* ACTS: activate/deactivate session verbs */
/*****************************************************************************/
#define AP_DEACTIVATE_SESSION APPC_FLIPI(0x2E00)
#define AP_ACTIVATE_SESSION APPC_FLIPI(0x1410)
/*****************************************************************************/
/* New opcode for RCV_ALLOC with a list of TP names *WSNA5*/
/* */
/* Though defined for all OS, this verb will only be allowed for WINSNA */
/* environments */
/*****************************************************************************/
#define AP_RECEIVE_ALLOCATE_X APPC_FLIPI(0x9600) /*X'1600'+ X'8000'*/
#define AP_RECEIVE_ALLOCATE_EX APPC_FLIPI(0xF103) /* X'F103' */
#define AP_RECEIVE_ALLOCATE_EX_END APPC_FLIPI(0xF104) /* X'F104' */
/*****************************************************************************/
/* management verbs *DISP*CNOS*/
/*****************************************************************************/
#define AP_CNOS APPC_FLIPI(0x1500) /* X'1500' */
#define AP_DISPLAY APPC_FLIPI(0X1B00) /* X'1B00' */
/*****************************************************************************/
/* mapped conversation verbs */
/*****************************************************************************/
#define AP_M_ALLOCATE APPC_FLIPI(0x0100) /* X'0100' */
#define AP_M_CONFIRM APPC_FLIPI(0x0300) /* X'0300' */
#define AP_M_CONFIRMED APPC_FLIPI(0x0400) /* X'0400' */
#define AP_M_DEALLOCATE APPC_FLIPI(0x0500) /* X'0500' */
#define AP_M_FLUSH APPC_FLIPI(0x0600) /* X'0600' */
#define AP_M_GET_ATTRIBUTES APPC_FLIPI(0x0700) /* X'0700' */
#define AP_M_PREPARE_TO_RECEIVE APPC_FLIPI(0x0a00) /* X'0a00' */
#define AP_M_RECEIVE_AND_POST APPC_FLIPI(0x0d00) /* X'0d00' */
#define AP_M_RECEIVE_AND_WAIT APPC_FLIPI(0x0b00) /* X'0b00' */
#define AP_M_RECEIVE_IMMEDIATE APPC_FLIPI(0x0c00) /* X'0c00' */
#define AP_M_REQUEST_TO_SEND APPC_FLIPI(0x0e00) /* X'0e00' */
#define AP_M_SEND_CONVERSATION APPC_FLIPI(0x1800) //ES10 /* X'1800' */
#define AP_M_SEND_DATA APPC_FLIPI(0x0f00) /* X'0f00' */
#define AP_M_SEND_ERROR APPC_FLIPI(0x1000) /* X'1000' */
#define AP_M_TEST_RTS APPC_FLIPI(0x1200) /* X'1200' */
#define AP_M_TEST_RTS_AND_POST APPC_FLIPI(0x8100) /* X'8100' */ /*RPRP*/
#ifdef WIN32 /*APOR*/
#define AP_M_POST_ON_RECEIPT APPC_FLIPI(0x8200) /* X'8200' */ /*APOR*/
#endif /*APOR*/
#define AP_M_RECEIVE_LOG_DATA APPC_FLIPI(0x8300) /* X'8300' */ /*RELD*/
/*****************************************************************************/
/* basic conversation verbs */
/*****************************************************************************/
#define AP_B_ALLOCATE APPC_FLIPI(0x0100) /* X'0100' */
#define AP_B_CONFIRM APPC_FLIPI(0x0300) /* X'0300' */
#define AP_B_CONFIRMED APPC_FLIPI(0x0400) /* X'0400' */
#define AP_B_DEALLOCATE APPC_FLIPI(0x0500) /* X'0500' */
#define AP_B_FLUSH APPC_FLIPI(0x0600) /* X'0600' */
#define AP_B_GET_ATTRIBUTES APPC_FLIPI(0x0700) /* X'0700' */
#define AP_B_PREPARE_TO_RECEIVE APPC_FLIPI(0x0a00) /* X'0a00' */
#define AP_B_RECEIVE_AND_POST APPC_FLIPI(0x0d00) /* X'0d00' */
#define AP_B_RECEIVE_AND_WAIT APPC_FLIPI(0x0b00) /* X'0b00' */
#define AP_B_RECEIVE_IMMEDIATE APPC_FLIPI(0x0c00) /* X'0c00' */
#define AP_B_REQUEST_TO_SEND APPC_FLIPI(0x0e00) /* X'0e00' */
#define AP_B_SEND_CONVERSATION APPC_FLIPI(0x1800) //ES10 /* X'1800' */
#define AP_B_SEND_DATA APPC_FLIPI(0x0f00) /* X'0f00' */
#define AP_B_SEND_ERROR APPC_FLIPI(0x1000) /* X'1000' */
#define AP_B_TEST_RTS APPC_FLIPI(0x1200) /* X'1200' */
#define AP_B_TEST_RTS_AND_POST APPC_FLIPI(0x8100) /* X'8100' */ /*RPRP*/
#ifdef WIN32 /*APOR*/
#define AP_B_POST_ON_RECEIPT APPC_FLIPI(0x8200) /* X'8200' */ /*APOR*/
#endif /*APOR*/
#define AP_B_RECEIVE_LOG_DATA APPC_FLIPI(0x8300) /* X'8300' */ /*RELD*/
/*****************************************************************************/
/* type independent verbs */
/*****************************************************************************/
#define AP_GET_TP_PROPERTIES APPC_FLIPI(0x1700) //ES10 /* X'1700' */
#define AP_GET_TYPE APPC_FLIPI(0x0800) /* X'0800' */
#define AP_GET_STATE APPC_FLIPI(0x0900) /* X'0900' */
#ifdef SYNCPT_SUPPORT /*SYNC*/
#define AP_ENLIST APPC_FLIPI(0x7d00) /* X'7d00' *2PC*/
#define AP_SET_TP_PROPERTIES APPC_FLIPI(0x7e00) /* X'7e00' *SYNC*/
#define AP_GET_LU_STATUS APPC_FLIPI(0x7f00) /* X'7f00' *SYNC*/
#endif /*SYNC*/
/* ========================================================================= */
/*****************************************************************************/
/* ------------------- primary and secondary return codes ------------------ */
/*****************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -