OpenAPI User Guide > OpenAPI User Guide > OpenAPI Data Types > OpenAPI Data Structures > IIAPI_DATAVALUE Data Type--Provide Value for OpenAPI Data
Was this helpful?
IIAPI_DATAVALUE Data Type--Provide Value for OpenAPI Data
The IIAPI_DATAVALUE data type contains the value for OpenAPI data. If the value is unavailable, this data type contains a NULL value and the dv_null parameter is TRUE.
This data type has the following syntax:
typedef struct _IIAPI_DATAVALUE
{
       II_BOOL         dv_null;
       II_UINT2        dv_length;
       II_PTR          dv_value;
} IIAPI_DATAVALUE;
This data type has the following parameters:
dv_null
Indicates whether the data is NULL. If it is NULL, this parameter is TRUE; otherwise, it is FALSE.
dv_length
Specifies the length of the data.
dv_value
Specifies the value of the data. When used to provide input to an OpenAPI function, this parameter must contain dv_length bytes of data. When used to receive output from an OpenAPI function, this parameter must be large enough to hold the datatype described by the corresponding descriptor (ds_length from IIAPI_DESCRIPTOR).
Last modified date: 01/30/2023