0

“结构”的属性是否可以承载多个结构?

LPWFSPINFDK lppFDKs;例如,我需要作为 struct 一部分的属性_wfs_pin_func_key_detail,接收多个 structs _wfs_pin_fdk

我正在尝试这种方式,编译,但最终程序无法识别:

    WFSPINFUNCKEYDETAIL PinFunKeyDetail;

    WFSPINFDK ObjPinKey;
    LPWFSPINFDK PinKey;
    PinKey = &ObjPinKey;

    PinKey->ulFDK = WFS_PIN_FK_FDK01;
    PinKey->usXPosition = 5;
    PinKey->usYPosition = 5;

    PinFunKeyDetail.lppFDKs = &PinKey;

结构:_wfs_pin_fdk

typedef struct _wfs_pin_fdk
{
    ULONG               ulFDK;
    USHORT              usXPosition;
    USHORT              usYPosition;
} WFSPINFDK, * LPWFSPINFDK;

结构:_wfs_pin_func_key_detail

typedef struct _wfs_pin_func_key_detail
{
    ULONG               ulFuncMask;
    USHORT              usNumberFDKs;
    LPWFSPINFDK       * lppFDKs; //I want to receive the structs here
} WFSPINFUNCKEYDETAIL, * LPWFSPINFUNCKEYDETAIL;
4

0 回答 0