Can an attribute of a struct
receive multiple structs?
For example, I need the LPWFSPINFDK lppFDKs;
attribute that is part of the _wfs_pin_func_key_detail
struct to receive multiple _wfs_pin_fdk
structs.
I'm trying this way, compile, but the final program does not recognize:
WFSPINFUNCKEYDETAIL PinFunKeyDetail;
WFSPINFDK ObjPinKey;
LPWFSPINFDK PinKey;
PinKey = &ObjPinKey;
PinKey->ulFDK = WFS_PIN_FK_FDK01;
PinKey->usXPosition = 5;
PinKey->usYPosition = 5;
PinFunKeyDetail.lppFDKs = &PinKey;
STRUCT: _wfs_pin_fdk
typedef struct _wfs_pin_fdk
{
ULONG ulFDK;
USHORT usXPosition;
USHORT usYPosition;
} WFSPINFDK, * LPWFSPINFDK;
STRUCT: _wfs_pin_func_key_detail
typedef struct _wfs_pin_func_key_detail
{
ULONG ulFuncMask;
USHORT usNumberFDKs;
LPWFSPINFDK * lppFDKs; //Aqui recebo as structs
} WFSPINFUNCKEYDETAIL, * LPWFSPINFUNCKEYDETAIL;