OpenTP1 Version 7 Programming Reference C Language

[Contents][Index][Back][Next]

dc_mcf_ap_info - Report the application information

Format

ANSI C, C++

#include <dcmcf.h>
int dc_mcf_ap_info(DCLONG flags, char *mcfid, char *apname,
                    struct DC_MCFAPINFO *apinfo,
                    char *resv01, DCLONG resv02)

K&R C

#include <dcmcf.h>
int dc_mcf_ap_info (flags, mcfid, apname, apinfo, resv01,
                    resv02)
DCLONG  flags;
char  *mcfid;
char  *apname;
struct DC_MCFAPINFO  *apinfo;
char  *resv01;
DCLONG  resv02;

Description

The function dc_mcf_ap_info() acquires various types of application information from an MHP.

This function can be used to report the application information on the MHP that called the function dc_mcf_ap_info() or the other MHP. The application information becomes effective only when the function dc_mcf_ap_info() is normally terminated.

Argument whose values is set in the UAP

flags

Specify one of the following flags according to the type of the application to be referenced:

DCMCFMYSELF
Specify this flag to acquire the application information on the MHP that called function dc_mcf_ap_info().

DCMCFOTHER
Specify this flag to acquire the information on a specific application according to the process identifier for MCF communication service in which the application definition is included, and application name.

mcfid

apname

apinfo

Specify the address of the area DC_MCFAPINFO which receives the application information.

resv01

Specify NULL.

resv02

Specify DCNOFLAGS.

Arguments whose values are returned from OpenTP1

apinfo

The application information is returned with the structure DC_MCFAPINFO.

The structure has the following format:

struct DC_MCFAPINFO {
                      char mcf_apinfo[4];
                      DCLONG mcf_resv00;
                      char mcf_ap_name[9];
                      char mcf_ap_mcfid[3];
                      char mcf_resv01[4];
                      DCLONG mcf_ap_stat;
                      DCLONG mcf_ap_type;
                      char mcf_sg_name[32];
                      DCLONG mcf_sg_stat;
                      DCLONG mcf_sg_hold;
                      char mcf_sv_name[32];
                      DCLONG mcf_sv_stat;
                      DCLONG mcf_ap_ntmetim;
                      DCLONG mcf_ap_tempsize;
                      DCLONG mcf_ap_msgcnt;
                      DCLONG mcf_ap_trnmode;
                      DCLONG mcf_ap_quekind;
                      char mcf_resv02[72];
                    }

Return values

Return value Return value (numeric) Explanation
DCMCFRTN_00000 0 Normal termination.
DCMCFRTN_72000 -13000 The function dc_mcf_ap_info() was called from a service other than the MHP service.
DCMCFRTN_72001 -13001 The specified application name is invalid.
Combination of the application name and process identifier is invalid.
DCMCFRTN_72016 -13016 The value specified in a parameter is invalid.
Other than the above occurred. An unprecedented error (e.g., program damage)

Note

When two or more MHPs for ERREVT1, ERREVT2, ERREVT3, or ERREVT4 are started at the same time, the MHPs for the same error event name may have a different application type. For the MHPs other than the MHP that called function dc_mcf_ap_info(), the application type for the error event (ERREVT1, ERREVT2, ERREVT3, or ERREVT4) is not reported. In this case, the default value of the MCF application definition, no-response type is reported.