/**MOD+***********************************************************************/
/* Module:    winmgt.h                                                       */
/*                                                                           */
/* Purpose:   header file for DISPLAY API structures                         */
/*                                                                           */
/* Dependencies:                                                             */
/*                                                                           */
/* Invocation:                                                               */
/*            #include <winmgt.h>                                            */
/*                                                                           */
/* (C) Copyright IBM Corp. 2002                                              */
/*                                                                           */
/* The source code for this program is not published or otherwise            */
/* divested of its trade secrets, irrespective of what has been              */
/* deposited with the U.S. Copyright Office.                                 */
/*                                                                           */
/* Structure definitions and parameter values are only included for          */
/* backwards compatability                                                   */
/*                                                                           */
/* The DISPLAY verb has very limited supported.                              */
/* The DISPLAY verb has been replaced by the WinNOF interface.               */
/* The following parameters for the display verb are supported               */
/* (parameters which are not supported are ignored):                         */
/*                                                                           */
/* 1. The DISPLAY Structure                                                  */
/*    unsigned short opcode;               Verb operation code               */
/*                                            AP_DISPLAY                     */
/*    unsigned char  reserv2[2];           Reserved                          */
/*    unsigned short primary_rc;           Primary RETURN_CODE               */
/*    unsigned long  secondary_rc;         Secondary RETURN_CODE             */
/*    unsigned long  init_sect_len;        Length of this section            */
/*    unsigned long  buffer_len;           Length of passed buffer           */
/*    unsigned char  far *buffer_ptr;      Passed address                    */
/*    unsigned long  num_sections;         Number of sections                */
/*    unsigned long  display_len;          Returned, length used             */
/*    unsigned long  area_needed;          Returned, length required         */
/*                                                                           */
/*    unsigned char  lu62_info;            LU 6.2 info?                      */
/*                                            AP_NO                          */
/*                                            AP_YES                         */
/*                                                                           */
/*    struct lu62_info_sect far              *lu62_info_ptr;                 */
/*                                                                           */
/*                                                                           */
/* 2. The LU62_INFO_SECT Structure                                           */
/*                                                                           */
/*    unsigned long  lu62_init_sect_len;   Structure length                  */
/*    unsigned short num_lu62s;            Number of configured LUs displaye */
/*    unsigned short total_lu62s;          Total Number of configured LUs    */
/*                                                                           */
/* 3. The LU62_OVERLAY Structure                                             */
/*                                                                           */
/*    unsigned long  lu62_entry_len;       Size of this LU entry             */
/*    unsigned long  lu62_overlay_len;     This value contains               */
/*                                            sizeof(struct lu62_overlay) -  */
/*                                            sizeof(lu62_entry_len)         */
/*    unsigned char  lu_name[8];           LU Name (EBCDIC type A)           */
/*    unsigned char  lu_alias[8];          LU Alias (ASCII)                  */
/*    unsigned short num_plus;             Number of partner LUs             */
/*                                                                           */
/*                                                                           */
/* 4. PLU62_OVERLAY                                                          */
/*                                                                           */
/*    unsigned long  plu62_entry_len;      Size of this partner LU           */
/*    unsigned long  plu62_overlay_len;    This value contains               */
/*                                            sizeof(struct plu62_overlay) - */
/*                                            sizeof(plu62_entry_len)        */
/*    unsigned char  plu_alias[8];         Partner LU Alias (ASCII)          */
/*    unsigned char  fqplu_name[17];       Fully Qualified Partner LU Name   */
/*                                            (EBCDIC type A)                */
/*                                                                           */
/**MOD-***********************************************************************/

#ifndef APPC_MGT_INCLUDED
#define APPC_MGT_INCLUDED

#include <winappc.h>

#ifdef __cplusplus
extern "C" {
#endif


/*****************************************************************************/
/* CONSTFLIP macros.  Ordinary flipping macros include function calls and so */
/* PFLIPI(constant) does not appear constant to the compiler                 */
/*****************************************************************************/
#define MGT_LO_UC(w)    ((unsigned char)(((unsigned short)(w)) & 0xFF))
#define MGT_HI_UC(w)    ((unsigned char)(((unsigned short)(w) >> 8) & 0xff))
#define MGT_MAKUS(l, h) (((unsigned short)(l)) | ((unsigned short)(h)) << 8)
#define MGT_MAKUL(l, h) ((unsigned long)(((unsigned short)(l))|      \
                          ((unsigned long)((unsigned short)(h))) << 16))
#define MGT_LO_US(l)      ((unsigned short)(((unsigned long)(l)) & 0xFFFF))
#define MGT_HI_US(l)    ((unsigned short)(((unsigned long)(l) >> 16) \
                           & 0xffff))
#define CONSTFLIPI(X) MGT_MAKUS(MGT_HI_UC(X),MGT_LO_UC(X))
#define CONSTFLIPL(X) MGT_MAKUL(CONSTFLIPI(MGT_HI_US(X)),  \
                                CONSTFLIPI(MGT_LO_US(X)))

/*****************************************************************************/
/* Parameter values                                                          */
/*****************************************************************************/

#define AP_QUEUED_OPERATOR_STARTED      0x00
#define AP_QUEUED_AM_STARTED            0x01
#define AP_NONQUEUED_AM_STARTED         0x02
#define AP_QUEUED_OPERATOR_PRELOADED    0x03

#define AP_BACKGROUND                   0x00
#define AP_FULL_SCREEN                  0x01
#define AP_PRESENTATION_MANAGER         0x02
#define AP_VIO_WINDOWABLE               0x03

#define AP_LEARN                        0x00
#define AP_LEN                          0x01
#define AP_NN                           0x02
#define AP_EN                           0x03

#define AP_SWITCHED                     0x01
#define AP_NONSWITCHED                  0x02

#define AP_OUTBOUND                     0x00
#define AP_INBOUND                      0x01

#define AP_NOT_IN_PROGRESS              0x00
#define AP_IN_PROGRESS                  0x01

#define AP_NOT_SUPPORTED                0x00
#define AP_SUPPORTED                    0x01

#define AP_SSCP_PU_SESSION              0x00
#define AP_SSCP_LU_SESSION              0x01
#define AP_LU_LU_SESSION                0x02

#define AP_HOST_CONNECTION              0x01
#define AP_PEER_CONNECTION              0x02
#define AP_BOTH_CONNECTION              0x03

#define AP_CONALS_PND                   0x02
#define AP_XID_PND                      0x03
#define AP_CONTACT_PND                  0x05
#define AP_CONTACTED                    0x06
#define AP_DISC_PND                     0x07
#define AP_DISC_RQ                      0x08

#define AP_DISABLE_PWSUB                0x01

#define AP_3270_EMULATION               0x00
#define AP_LUA                          0x01

#define AP_LEASED_LINE                  0x00
#define AP_VX32                         0x01

#define AP_DISCONNECT                   0x00
#define AP_CONNECT                      0x01
#define AP_AUTO_CONNECT                 0x02

#define AP_FIXED                        0x12
#define AP_ADAPTIVE                     0x13

#define AP_FAILED_RETRY                 0x06
#define AP_FAILED_NO_RETRY              0x07

#define AP_NOT_BOUND                    0x00
#define AP_BOUND                        0x80
#define AP_BINDING                      0x40
#define AP_UNBINDING                    0x20

/*****************************************************************************/
/* Structure Definitions                                                     */
/*****************************************************************************/

typedef struct fqpcid_overlay
{
  unsigned char  unique_proc_id[8];
  unsigned char  fq_length;
  unsigned char  fq_name[17];
} FQPCID_OVERLAY;

typedef struct alt_alias_overlay
{
  unsigned char  alt_plu_alias[8];
} ALT_ALIAS_OVERLAY;

typedef struct display
{
  unsigned short opcode;
  unsigned char  reserv2[2];
  unsigned short primary_rc;
  unsigned long  secondary_rc;
  unsigned long  init_sect_len;
  unsigned long  buffer_len;
  unsigned char  far *buffer_ptr;
  unsigned long  num_sections;
  unsigned long  display_len;
  unsigned long  area_needed;
  unsigned char  sna_global_info;
  unsigned char  lu62_info;
  unsigned char  am_info;
  unsigned char  tp_info;
  unsigned char  sess_info;
  unsigned char  link_info;
  unsigned char  lu_0_3_info;
  unsigned char  gw_info;
  unsigned char  x25_physical_link_info;
  unsigned char  sys_def_info;
  unsigned char  adapter_info;
  unsigned char  lu_def_info;
  unsigned char  plu_def_info;
  unsigned char  mode_def_info;
  unsigned char  link_def_info;
  unsigned char  ms_info;
  struct sna_global_info_sect far          *sna_global_info_ptr;
  struct lu62_info_sect far                *lu62_info_ptr;
  struct am_info_sect far                  *am_info_ptr;
  struct tp_info_sect far                  *tp_info_ptr;
  struct sess_info_sect far                *sess_info_ptr;
  struct link_info_sect far                *link_info_ptr;
  struct lu_0_3_info_sect far              *lu_0_3_info_ptr;
  struct gw_info_sect far                  *gw_info_ptr;
  struct x25_physical_link_info_sect far   *x25_physical_link_info_ptr;
  struct sys_def_info_sect far             *sys_def_info_ptr;
  struct adapter_info_sect far             *adapter_info_ptr;
  struct lu_def_info_sect far              *lu_def_info_ptr;
  struct plu_def_info_sect far             *plu_def_info_ptr;
  struct mode_def_info_sect far            *mode_def_info_ptr;
  struct link_def_info_sect far            *link_def_info_ptr;
  struct ms_info_sect far                  *ms_info_ptr;
} DISPLAY;



typedef struct psid_struct
{
  unsigned char  machine_type[4];
  unsigned char  machine_mod_num[3];
  unsigned char  plant_of_mfg[2];
  unsigned char  machine_seq_num[7];
} type_product_set_id;


typedef struct sna_global_info_sect
{
  unsigned char  version;
  unsigned char  release;
  unsigned char  net_name[8];
  unsigned char  pu_name[8];
  unsigned char  node_id[4];
  type_product_set_id product_set_id;
  unsigned char  alias_cp_name[8];
  unsigned char  node_type;
  unsigned char  cp_nau_addr;
  unsigned char  corr_serv_disk;
  unsigned char  reserved;
  unsigned char  appc_version;
  unsigned char  appc_release;
  unsigned short appc_fixlevel;
} SNA_GLOBAL_INFO_SECT;

typedef struct lu62_info_sect
{
  unsigned long  lu62_init_sect_len;
  unsigned short num_lu62s;
  unsigned short total_lu62s;
} LU62_INFO_SECT;

typedef struct lu62_overlay
{
  unsigned long  lu62_entry_len;
  unsigned long  lu62_overlay_len;
  unsigned char  lu_name[8];
  unsigned char  lu_alias[8];
  unsigned short num_plus;
  unsigned char  fqlu_name[17];
  unsigned char  default_lu;
  unsigned char  reserv3;
  unsigned char  lu_local_addr;
  unsigned short lu_sess_lim;
  unsigned char  max_tps;
  unsigned char  lu_type;
} LU62_OVERLAY;

typedef struct plu62_overlay
{
  unsigned long  plu62_entry_len;
  unsigned long  plu62_overlay_len;
  unsigned char  plu_alias[8];
  unsigned short num_modes;
  unsigned char  plu_un_name[8];
  unsigned char  fqplu_name[17];
  unsigned char  reserv3;
  unsigned short plu_sess_lim;
  unsigned char  dlc_name[8];
  unsigned char  adapter_num;
  unsigned char  dest_addr_len;
  unsigned char  dest_addr[32];
  unsigned int   par_sess_supp:1;
  unsigned int   reserv4:7;
  unsigned int   def_already_ver:1;
  unsigned int   def_conv_sec:1;
  unsigned int   def_sess_sec:1;
  unsigned int   reserv5:5;
  unsigned int   act_already_ver:1;
  unsigned int   act_conv_sec:1;
  unsigned int   reserv6:6;
  unsigned int   implicit_part:1;
  unsigned int   reserv7:7;
} PLU62_OVERLAY;

typedef struct mode_overlay
{
  unsigned long  mode_entry_len;
  unsigned char  mode_name[8];
  unsigned short max_ru_size_upp;
  unsigned short max_ru_size_low;
  unsigned short max_neg_sess_lim;
  unsigned short curr_sess_lim;
  unsigned short min_win_lim;
  unsigned short min_lose_lim;
  unsigned short act_sess_count;
  unsigned short pend_sess_count;
  unsigned short auto_act_sess_count;
  unsigned short act_win_lim;
  unsigned short act_lose_lim;
  unsigned short term_count;
  unsigned int   drain_target:1;
  unsigned int   drain_source:1;
  unsigned int   reserv3:6;
  unsigned int   pacing_size:8;
  unsigned int   implicit_mode:1;
  unsigned int   reserv4:7;
  unsigned int   reserv5:8;
} MODE_OVERLAY;

typedef struct am_info_sect
{
  unsigned long  am_init_sect_len;
  unsigned char  am_active;
  unsigned char  reserv4;
  unsigned short num_tps;
} AM_INFO_SECT;

typedef struct am_overlay
{
  unsigned long  am_entry_len;
  unsigned char  tp_name[64];
  unsigned char  filespec[64];
  unsigned int   reserv3:1;
  unsigned int   sync_level_conf:1;
  unsigned int   sync_level_none:1;
  unsigned int   reserv4:5;
  unsigned int   conv_type:8;
  unsigned short in_all_qdpth_lim;
  unsigned short in_all_qdpth;
  short  in_all_timeout;
  unsigned short num_rcv_all_pend;
  short  rcv_all_timeout;
  unsigned char  tp_type;
  unsigned char  pgm_state;
  unsigned char  conv_sec;
  unsigned char  reserv5;
  unsigned short process_id;
  unsigned char  parm_string[32];
  unsigned char  program_type;
  unsigned char  reserv5a;
  unsigned char  tp_initiated;
  unsigned char  reserv6;
  unsigned char  icon_filespec[80];
} AM_OVERLAY;

typedef struct tp_info_sect
{
  unsigned long  tp_init_sect_len;
  unsigned short num_tps;
  unsigned short total_tps;
} TP_INFO_SECT;

typedef struct tp_overlay
{
  unsigned long  tp_entry_len;
  unsigned long  tp_overlay_len;
  unsigned short num_conv;
  unsigned char  tp_id[8];
  unsigned char  tp_name[64];
  unsigned char  user_id[10];
  unsigned int   reserv3:7;
  unsigned int   loc_or_rem:1;
  unsigned int   reserv4:8;
  unsigned char  lu_alias[8];
  LUW_ID_OVERLAY luw_id;
} TP_OVERLAY;

typedef struct conv_overlay
{
  unsigned long  conv_entry_len;
  unsigned long  conv_id;
  unsigned char  reserv3[9];
  unsigned char  state;
  unsigned char  sess_id[8];
  unsigned char  sync_level;
  unsigned char  conv_type;
  unsigned long  conv_group_id;
} CONV_OVERLAY;

typedef struct sess_info_sect
{
  unsigned long  sess_init_sect_len;
  unsigned short num_sessions;
  unsigned short total_sessions;
} SESS_INFO_SECT;

typedef struct sess_overlay
{
  unsigned long  sess_entry_len;
  unsigned long  reserv3;
  unsigned char  sess_id[8];
  unsigned long  conv_id;
  unsigned char  lu_alias[8];
  unsigned char  plu_alias[8];
  unsigned char  mode_name[8];
  unsigned short send_ru_size;
  unsigned short rcv_ru_size;
  unsigned char  send_pacing_size;
  unsigned char  rcv_pacing_size;
  unsigned char  link_id[12];
  unsigned char  daf;
  unsigned char  oaf;
  unsigned char  odai;
  unsigned char  sess_type;
  unsigned char  conn_type;
  unsigned char  reserv4;
  FQPCID_OVERLAY fqpcid;
  unsigned char  cgid[4];
  unsigned char  fqlu_name[17];
  unsigned char  fqplu_name[17];
  unsigned char  pacing_type;
  unsigned char  reserv5;
} SESS_OVERLAY;

typedef struct link_info_sect
{
  unsigned long  link_init_sect_len;
  unsigned short num_links;
  unsigned short total_links;
} LINK_INFO_SECT;


typedef struct link_overlay
{
  unsigned long  link_entry_len;
  unsigned char  link_id[12];
  unsigned char  dlc_name[8];
  unsigned char  adapter_num;
  unsigned char  dest_addr_len;
  unsigned char  dest_addr[32];
  unsigned char  inbound_outbound;
  unsigned char  state;
  unsigned char  deact_link_flag;
  unsigned char  reserv3;
  unsigned short num_sessions;
  unsigned short ru_size;
  unsigned short reserv4;
  unsigned char  adj_fq_cp_name[17];
  unsigned char  reserv5;
  unsigned char  adj_node_type;
  unsigned char  cp_cp_sess_spt;
  unsigned char  conn_type;
  unsigned char  ls_role;
  unsigned char  line_type;
  unsigned char  tg_number;
  unsigned long  eff_capacity;
  unsigned char  conn_cost;
  unsigned char  byte_cost;
  unsigned char  propagation_delay;
  unsigned char  user_def_1;
  unsigned char  user_def_2;
  unsigned char  user_def_3;
  unsigned char  security;
  unsigned char  reserv6;
} LINK_OVERLAY;

typedef struct lu_0_3_info_sect
{
  unsigned long  lu_0_3_init_sect_len;
  unsigned short num_lu_0_3s;
} LU_0_3_INFO_SECT;

typedef struct lu_0_3_overlay
{
  unsigned long  lu_0_3_entry_len;
  unsigned char  access_type;
  unsigned char  lu_type;
  unsigned char  lu_daf;
  unsigned char  lu_short_name;
  unsigned char  lu_long_name[8];
  unsigned char  sess_id[8];
  unsigned char  dlc_name[8];
  unsigned char  adapter_num;
  unsigned char  dest_addr_len;
  unsigned char  dest_addr[32];
  unsigned char  sscp_lu_sess_state;
  unsigned char  lu_lu_sess_state;
  unsigned char  link_id[12];
} LU_0_3_OVERLAY;

typedef struct gw_info_sect
{
  unsigned long  gw_init_sect_len;
  unsigned short num_gw_lus;
} GW_INFO_SECT;

typedef struct gw_overlay
{
  unsigned long  gw_entry_len;
  unsigned char  ws_lu_name[8];
  unsigned char  ws_pu_name[8];
  unsigned char  ws_pool_class;
  unsigned char  ws_local_addr;
  unsigned char  host_local_addr;
  unsigned char  ws_lu_type;
  unsigned char  host_lu_name[17];
  unsigned char  reserv3;
  unsigned char  ws_dlc_name[8];
  unsigned char  ws_adapter_num;
  unsigned char  ws_dest_addr_len;
  unsigned char  ws_dest_addr[32];
  unsigned int   ws_link_act:1;
  unsigned int   lu_lu_pend_term:1;
  unsigned int   lu_lu_pend_init:1;
  unsigned int   lu_lu_act:1;
  unsigned int   lu_cp_pend_term:1;
  unsigned int   lu_cp_pend_init:1;
  unsigned int   lu_cp_act_offline:1;
  unsigned int   lu_cp_act_online:1;
  unsigned int   reserv4:8;
} GW_OVERLAY;

typedef struct x25_physical_link_info_sect
{
  unsigned long  x25_init_sect_len;
  unsigned short num_x25_links;
  unsigned short num_x25_link_entries;
} X25_PHYSICAL_LINK_INFO_SECT;

typedef struct x25_overlay
{
  unsigned long  x25_entry_len;
  unsigned char  link_name[8];
  unsigned char  link_comments[60];
  unsigned short adapter_slot_num;
  unsigned char  link_type;
  unsigned char  link_mode;
  unsigned char  link_state;
  unsigned char  link_direction;
  unsigned short num_act_pvcs;
  unsigned short total_num_pvcs;
  unsigned short num_act_svcs;
  unsigned short num_incoming_svcs;
  unsigned short num_2_way_svcs;
  unsigned short num_outgoing_svcs;
} X25_OVERLAY;

typedef struct sys_def_info_sect
{
  unsigned char  default_mode_name[8];
  unsigned char  default_local_lu_name[8];
  unsigned char  implicit_inb_rlu_supp;
  unsigned char  max_held_alerts;
  unsigned char  tp_conv_sec_rqd;
  unsigned char  reserv3;
  unsigned short max_mc_ll_send_size;
  unsigned char  dir_for_attaches[64];
  unsigned char  tp_operation;
  unsigned char  tp_program_type;
} SYS_DEF_INFO_SECT;

typedef struct adapter_info_sect
{
  unsigned long  adapter_init_sect_len;
  unsigned short num_adapters;
  unsigned short total_adapters;
} ADAPTER_INFO_SECT;

typedef struct adapter_overlay
{
  unsigned long  adapter_entry_len;
  unsigned char  dlc_name[8];
  unsigned char  adapter_number;
  unsigned char  ls_role;
  unsigned long  eff_capacity;
  unsigned char  conn_cost;
  unsigned char  byte_cost;
  unsigned char  propagation_delay;
  unsigned char  user_def_1;
  unsigned char  user_def_2;
  unsigned char  user_def_3;
  unsigned char  security;
  unsigned char  reserv3;
  unsigned char  line_type;
  unsigned char  lim_res;
  unsigned short lim_res_timeout;
  unsigned short max_btu_size;
  unsigned char  rcv_window;
  unsigned char  send_window;
  unsigned short max_ls_used;
  unsigned char  abm_support;
  unsigned char  reserv4;
} ADAPTER_OVERLAY;


typedef struct lu_def_info_sect
{
  unsigned long  lu_def_init_sect_len;
  unsigned short num_lu_def;
  unsigned short total_lu_def;
} LU_DEF_INFO_SECT;

typedef struct lu_def_overlay
{
  unsigned long  lu_def_entry_len;
  unsigned char  lu_name[8];
  unsigned char  lu_alias[8];
  unsigned char  lu_nau_addr;
  unsigned char  reserv3;
} LU_DEF_OVERLAY;

typedef struct plu_def_info_sect
{
  unsigned long  plu_def_init_sect_len;
  unsigned short num_plu_def;
  unsigned short total_plu_def;
} PLU_DEF_INFO_SECT;

typedef struct plu_def_overlay
{
  unsigned long  plu_def_entry_len;
  unsigned char  fqplu_name[17];
  unsigned char  reserv3;
  unsigned char  plu_alias[8];
  unsigned char  plu_uninterpreted_name[8];
  unsigned short max_mc_ll_ssize;
  unsigned char  conv_security;
  unsigned char  parallel_sess;
  unsigned char  alt_alias_flag;
  unsigned char  num_of_alt_aliases;
} PLU_DEF_OVERLAY;

typedef struct mode_def_info_sect
{
  unsigned long  mode_def_init_sect_len;
  unsigned short num_mode_def;
  unsigned short total_mode_def;
} MODE_DEF_INFO_SECT;

typedef struct mode_def_overlay
{
  unsigned long  mode_def_entry_len;
  unsigned char  cos_name[8];
  unsigned char  mode_name[8];
  unsigned short reserv3;
  unsigned short rusize_upper;
  unsigned char  rcv_window;
  unsigned char  default_ru_size;
  unsigned short  max_neg_sess_lim;
  unsigned short  curr_sess_lim;
  unsigned short  min_win_lim;
} MODE_DEF_OVERLAY;

typedef struct link_def_info_sect
{
  unsigned long  link_def_init_sect_len;
  unsigned short num_link_def;
  unsigned short total_link_def;
} LINK_DEF_INFO_SECT;

typedef struct link_def_overlay
{
  unsigned long  link_def_entry_len;
  unsigned char  link_name[8];
  unsigned char  adj_fq_cp_name[17];
  unsigned char  adj_node_type;
  unsigned char  dlc_name[8];
  unsigned char  adapter_num;
  unsigned char  dest_addr_len;
  unsigned char  dest_addr[32];
  unsigned char  cp_cp_sess_spt;
  unsigned char  preferred_nn_server;
  unsigned char  auto_act_link;
  unsigned char  tg_number;
  unsigned char  lim_res;
  unsigned char  solicit_sscp_session;
  unsigned char  initself;
  unsigned char  bind_support;
  unsigned char  ls_role;
  unsigned char  line_type;
  unsigned long  eff_capacity;
  unsigned char  conn_cost;
  unsigned char  byte_cost;
  unsigned char  propagation_delay;
  unsigned char  user_def_1;
  unsigned char  user_def_2;
  unsigned char  user_def_3;
  unsigned char  security;
  unsigned char  reserv;
} LINK_DEF_OVERLAY;

typedef struct ms_info_sect
{
  unsigned long  ms_init_sect_len;
  unsigned char  held_mds_mu_alerts;
  unsigned char  held_nmvt_alerts;
  unsigned short num_fps;
  unsigned short total_fps;
  unsigned short num_ms_appls;
  unsigned short total_ms_appls;
  unsigned short num_act_trans;
  unsigned short total_act_trans;
} MS_INFO_SECT;

typedef struct ms_fp_overlay
{
  unsigned long  ms_fp_entry_len;
  unsigned char  ms_appl_name[8];
  unsigned char  ms_category[4];
  unsigned char  fp_fq_cp_name[17];
  unsigned char  bkup_appl_name[8];
  unsigned char  bkup_fp_fq_cp_name[17];
  unsigned char  reserv1;
  unsigned char  fp_type;
  unsigned char  fp_status;
  unsigned char  fp_routing;
} MS_FP_OVERLAY;

typedef struct ms_appl_overlay
{
  unsigned long  ms_appl_entry_len;
  unsigned char  ms_appl_name[8];
  unsigned char  ms_category[4];
  unsigned char  q_name[81];
  unsigned char  reserv3;
  unsigned char  reserv4;
  unsigned char  reserv5;
} MS_APPL_OVERLAY;

typedef struct ms_act_trans_overlay
{
  unsigned long  ms_act_trans_entry_len;
  unsigned char  fq_origin_cp_name[17];
  unsigned char  origin_ms_appl_name[8];
  unsigned char  fq_dest_cp_name[17];
  unsigned char  dest_ms_appl_name[8];
  unsigned char  fq_req_loc_cp_name[17];
  unsigned char  req_agent_appl_name[8];
  unsigned char  seq_num_dt[15];
} MS_ACT_TRANS_OVERLAY;

#ifdef __cplusplus
}
#endif

#endif /* APPC_MGT_INCLUDED */


