Hitachi

JP1 Version 12 JP1/Base Function Reference


JevGetDetailInformation

Organization of this page

Description

This function acquires the detailed information of the JP1 event as a basic attribute of the JP1 event.

Definition header

JevApi.h

Format

int JevGetDetailInformation(long* lplStatus,
                            JP1EVENT event,
                            long* lplSize,
                            const char** const lppszValue);

Arguments

lplStatus

In lplStatus, specify the pointer to the area for containing the status code that this function returns if the function abnormally terminates. The following explains the status code.

Table 3‒10: Status code and meaning (JevGetDetailInformation)

Status code

Meaning

JEV_S_PARAM_ERROR

An invalid parameter is specified.

event

In event, specify the handle for accessing the target JP1 event (the return value of the JevGetEvent() function).

lplSize

In lplSize, specify the pointer to the area for storing the length of the detailed information.

lppszValue

In lppszValue, specify the pointer to the area for storing the pointer to the acquired detailed information. When the corresponding data does not exist, a NULL pointer is set.

Return values

Situation

Explanation

Normal termination

The function returns 0 and, in the area specified in lppszValue, stores the pointer to the detailed information. Also, in the area specified in lplSize, the function stores the length of the detailed information.

Abnormal termination

The function returns -1. Also, in the area specified in lplStatus, the function stores the detailed error code.