#include <iostream>
typedef unsigned long ULONG;
typedef unsigned short USHORT;
typedef struct _wfs_pin_fdk
{
ULONG ulFDK;
USHORT usXPosition;
USHORT usYPosition;
} WFSPINFDK, * LPWFSPINFDK;
typedef struct _wfs_pin_func_key_detail
{
ULONG ulFuncMask;
USHORT usNumberFDKs;
LPWFSPINFDK * lppFDKs; //Aqui recebo as structs
} WFSPINFUNCKEYDETAIL, * LPWFSPINFUNCKEYDETAIL;
int main() {
WFSPINFUNCKEYDETAIL PinFunKeyDetail;
//três _wfs_pin_fdk
WFSPINFDK PinKeyA;
WFSPINFDK PinKeyB;
WFSPINFDK PinKeyC;
//(..algum código manipulado os _wfs_pin_fdk..)
//endereço dos três _wfs_pin_fdk , em array
LPWFSPINFDK PinKeys[3] = {
&PinKeyA,
&PinKeyB,
&PinKeyC
};
//passa para lppFDKs o endereço da array de LPWFSPINFDK
PinFunKeyDetail.lppFDKs = PinKeys;
//palpite: esse atributo indica quandos elementos são apontados por lppFDKs
PinFunKeyDetail.usNumberFDKs = 3;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdHlwZWRlZiB1bnNpZ25lZCBsb25nICBVTE9ORzsKdHlwZWRlZiB1bnNpZ25lZCBzaG9ydCBVU0hPUlQ7Cgp0eXBlZGVmIHN0cnVjdCBfd2ZzX3Bpbl9mZGsKewogICAgVUxPTkcgICAgICAgICAgICAgICB1bEZESzsKICAgIFVTSE9SVCAgICAgICAgICAgICAgdXNYUG9zaXRpb247CiAgICBVU0hPUlQgICAgICAgICAgICAgIHVzWVBvc2l0aW9uOwp9IFdGU1BJTkZESywgKiBMUFdGU1BJTkZESzsKCnR5cGVkZWYgc3RydWN0IF93ZnNfcGluX2Z1bmNfa2V5X2RldGFpbAp7CiAgICBVTE9ORyAgICAgICAgICAgICAgICB1bEZ1bmNNYXNrOwogICAgVVNIT1JUICAgICAgICAgICAgICAgdXNOdW1iZXJGREtzOwogICAgTFBXRlNQSU5GREsgICAgICAgICogbHBwRkRLczsgLy9Bc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