The Get Attribute function retrieves an arbitrary data value from an Access Module. The structure follows:
typedef struct _pmiAttribute
{
char EyeCatcher[pmiMAX_EC_LEN]; /* Struct eyecatcher string */
pmUInt32 StructLength; /* Length of this structure */
void *ObjData; /* Object pointer (PIData or FIData) */
pmUInt32 AttrNameLen; /* Length of attribute name */
char AttrName[pmiMAX_ATR_NAME_LEN]; /* Attribute name */
pmUInt32 AttrValueLen; /* Length of attribute value */
char AttrValue[pmiMAX_ATR_VAL_LEN]; /* Attribute value */
} pmiAttr_t;
where:
Parameter |
Field |
Description |
EyeCatcher |
input |
Structure description string, such as pmGetAParms. |
StructLength |
input |
Total structure length, including the EyeCatcher string. |
ObjData |
input |
Pointer to one of two forms of data. The type of data depends on the value of Reqtype as follows: |
AttrNameLen |
input |
Length of the AttrName field. |
AttrName |
input |
Name of the attribute. |
AttrValueLen |
output |
Length of the AttrValue field. |
AttrValue |
output |
Value of the attribute. |