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

📄 winappc.h

📁 c语言编程软件vc6.0中文绿色版_vc6.0官方下载
💻 H
📖 第 1 页 / 共 5 页
字号:
/*****************************************************************************/
/* rtn_ctl                                                                   */
/*****************************************************************************/
#define AP_WHEN_SESSION_ALLOCATED         0x00
#define AP_IMMEDIATE                      0x01
#define AP_WHEN_SESSION_FREE              0x02
#define AP_WHEN_CONWINNER_ALLOCATED       0x03                         /*ES10*/
#define AP_WHEN_CONV_GROUP_ALLOCATED      0x04                         /*ES10*/

/*****************************************************************************/
/* err_type                                                                  */
/*****************************************************************************/
#define AP_PROG                           0x00
#define AP_SVC                            0x01
#ifdef SYNCPT_SUPPORT                                                  /*SYNC*/
#define AP_BACKOUT_NO_RESYNC              0x02                         /*SYNC*/
#define AP_BACKOUT_RESYNC                 0x03                         /*SYNC*/
#endif                                                                 /*SYNC*/

/*****************************************************************************/
/* send_type                                                                 */
/*****************************************************************************/
#define AP_SEND_DATA_FLUSH                0x01
#define AP_SEND_DATA_CONFIRM              0x02
#define AP_SEND_DATA_P_TO_R_FLUSH         0x03
#define AP_SEND_DATA_P_TO_R_SYNC_LEVEL    0x04
#define AP_SEND_DATA_DEALLOC_FLUSH        0x05
#define AP_SEND_DATA_DEALLOC_SYNC_LEVEL   0x06
#define AP_SEND_DATA_DEALLOC_ABEND        0x07
#ifdef SYNCPT_SUPPORT                                                  /*SYNC*/
#define AP_SEND_DATA_P_TO_R_CONFIRM       0x08                         /*SYNC*/
#define AP_SEND_DATA_DEALLOC_CONFIRM      0x09                         /*SYNC*/
#endif                                                                 /*SYNC*/

/*****************************************************************************/
/* err_dir                                                                   */
/*****************************************************************************/
#define  AP_RCV_DIR_ERROR                 0x00
#define  AP_SEND_DIR_ERROR                0x01

/*****************************************************************************/
/* end_type                                                                  */
/*****************************************************************************/
#define AP_SOFT                           0x00
#define AP_HARD                           0x01

/*****************************************************************************/
/* conv_state                                                                */
/*****************************************************************************/
#define AP_RESET_STATE            1
#define AP_SEND_STATE             2
#define AP_RECEIVE_STATE          3
#define AP_CONFIRM_STATE          4
#define AP_CONFIRM_SEND_STATE     5
#define AP_CONFIRM_DEALL_STATE    6
#define AP_PEND_POST_STATE        7
#define AP_PEND_DEALL_STATE       8
#define AP_END_CONV_STATE         9
#define AP_SEND_PENDING_STATE    10

#ifdef SYNCPT_SUPPORT                                                  /*SYNC*/
/************************************************************************SYNC*/
/* values for type parameter on implied forget callback                 *SYNC*/
/************************************************************************SYNC*/
#define AP_DATA_FLOW                      0x00                         /*SYNC*/
#define AP_UNBIND                         0x01                         /*SYNC*/
#define AP_FAILURE                        0x02                         /*SYNC*/
                                                                       /*SYNC*/
#endif                                                                 /*SYNC*/

/************************************************************************SYNC*/
/* extension bit for the opext field                                    *SYNC*/
/************************************************************************SYNC*/
#define AP_EXTD_VCB                       0x80                    /*5178*SYNC*/

/* ========================================================================= */
/*****************************************************************************/
/* ------------------------- vcb structures -------------------------------- */
/*****************************************************************************/

/*****************************************************************************/
/* common vcb header                                                         */
/*****************************************************************************/
struct appc_hdr
{
  unsigned short opcode;
  unsigned char  opext;
  unsigned char  reserv2;
  unsigned short primary_rc;
  unsigned long  secondary_rc;
};

/*****************************************************************************/
/* control vcbs                                                              */
/*****************************************************************************/
struct tp_started
{
  unsigned short    opcode;
  unsigned char     opext;
  unsigned char     reserv2;
  unsigned short    primary_rc;
  unsigned long     secondary_rc;
  unsigned char     lu_alias[8];
  unsigned char     tp_id[8];
  unsigned char     tp_name[64];
#ifdef SYNCPT_SUPPORT                                                  /*SYNC*/
  unsigned char     syncpoint_rqd;  /* present if opext & AP_EXTD_VCB   *SYNC*/
                                    /* AP_NO                            *SYNC*/
                                    /* AP_YES                           *SYNC*/
#endif                                                                 /*SYNC*/
};


struct receive_allocate
{
  unsigned short    opcode;
  unsigned char     opext;
  unsigned char     reserv2;
  unsigned short    primary_rc;
  unsigned long     secondary_rc;
  unsigned char     tp_name[64];
  unsigned char     tp_id[8];
  unsigned long     conv_id;
  unsigned char     sync_level;         /* AP_NONE                           */
                                        /* AP_CONFIRM_SYNC_LEVEL             */
                                        /* AP_SYNCPT                    *SYNC*/
  unsigned char     conv_type;          /* AP_BASIC_CONVERSATION             */
                                        /* AP_MAPPED_CONVERSATION            */
  unsigned char     user_id[10];
  unsigned char     lu_alias[8];
  unsigned char     plu_alias[8];
  unsigned char     mode_name[8];
  unsigned char     reserv3[2];
  unsigned long     conv_group_id;      /* conversation group id        *ES10*/
  unsigned char     fqplu_name[17];     /* fully qualified lu name      *ES10*/
#ifdef SYNCPT_SUPPORT                                                  /*SYNC*/
  unsigned char     pip_incoming;       /* Supplied:                    *SYNC*/
                                        /*   AP_NO:  TP does not accept *SYNC*/
                                        /*           PIP data           *SYNC*/
                                        /*   AP_YES: TP does accept PIP *SYNC*/
                                        /*           data               *SYNC*/
                                        /* Returned:                    *SYNC*/
                                        /*   AP_NO:  PIP data not       *SYNC*/
                                        /*           available          *SYNC*/
                                        /*   AP_YES: PIP data available *SYNC*/
  unsigned char     syncpoint_rqd;      /* AP_NO                        *SYNC*/
                                        /* AP_YES                       *SYNC*/
  unsigned char     reserv4[3];                                        /*SYNC*/
#else                                                                  /*SYNC*/
  unsigned char     reserv4[5];
#endif                                                                 /*SYNC*/
};


struct tp_ended
{
  unsigned short    opcode;
  unsigned char     opext;
  unsigned char     reserv2;
  unsigned short    primary_rc;
  unsigned long     secondary_rc;
  unsigned char     tp_id[8];
  unsigned char     type;               /* AP_SOFT                      *9997*/
                                        /* AP_HARD                           */
};


/*****************************************************************************/
/* mapped conversation vcbs                                                  */
/*****************************************************************************/
struct mc_allocate
{
  unsigned short    opcode;
  unsigned char     opext;
  unsigned char     reserv2;
  unsigned short    primary_rc;
  unsigned long     secondary_rc;
  unsigned char     tp_id[8];
  unsigned long     conv_id;
  unsigned char     reserv3;
  unsigned char     sync_level;         /* AP_NONE                           */
                                        /* AP_CONFIRM_SYNC_LEVEL             */
                                        /* AP_SYNCPT                    *SYNC*/
  unsigned char     reserv4[2];
  unsigned char     rtn_ctl;            /* AP_WHEN_SESSION_ALLOCATED         */
                                        /* AP_IMMEDIATE                      */
                                        /* AP_WHEN_SESSION_FREE              */
                                        /* AP_WHEN_CONWINNER_ALLOCATED  *ES10*/
                                        /* AP_WHEN_CONV_GROUP_ALLOCATED *ES10*/
  unsigned char     reserv5;
  unsigned long     conv_group_id;      /* conversation group id        *ES10*/
  unsigned long     sense_data;         /* alloc failure sense data     *ES10*/
  unsigned char     plu_alias[8];
  unsigned char     mode_name[8];
  unsigned char     tp_name[64];
  unsigned char     security;           /* AP_NONE                           */
                                        /* AP_SAME                           */
                                        /* AP_PGM                            */
                                        /* AP_PROXY_NONE                *5178*/
                                        /* AP_PROXY_SAME                *5178*/
                                        /* AP_PROXY_PGM                 *5178*/
  unsigned char     reserv6[11];
  unsigned char     pwd[10];
  unsigned char     user_id[10];
  unsigned short    pip_dlen;
  unsigned char far *pip_dptr;
  unsigned char     reserv7;            /*CPIC* reserved for NS/2 compat.    */
  unsigned char     fqplu_name[17];     /*CPIC* fully qualified PLU name     */
  unsigned char     reserv8[8];         /*CPIC* reduced this from 26 to 8    */
#ifdef WIN32
  LPWSTR            proxy_user;         /* present if opext&AP_EXTD_VCB *5178*/
  LPWSTR            proxy_domain;       /* present if opext&AP_EXTD_VCB *5178*/
  unsigned char     reserv9[16];        /* present if opext&AP_EXTD_VCB *5178*/
#endif
};


struct mc_confirm
{
  unsigned short    opcode;
  unsigned char     opext;
  unsigned char     reserv2;
  unsigned short    primary_rc;
  unsigned long     secondary_rc;
  unsigned char     tp_id[8];
  unsigned long     conv_id;

⌨️ 快捷键说明

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