fork(1) download
  1. #include <iostream>
  2.  
  3. typedef unsigned long ULONG;
  4. typedef unsigned short USHORT;
  5.  
  6. typedef struct _wfs_pin_fdk
  7. {
  8. ULONG ulFDK;
  9. USHORT usXPosition;
  10. USHORT usYPosition;
  11. } WFSPINFDK, * LPWFSPINFDK;
  12.  
  13. typedef struct _wfs_pin_func_key_detail
  14. {
  15. ULONG ulFuncMask;
  16. USHORT usNumberFDKs;
  17. LPWFSPINFDK * lppFDKs; //Aqui recebo as structs
  18. } WFSPINFUNCKEYDETAIL, * LPWFSPINFUNCKEYDETAIL;
  19.  
  20. int main() {
  21. WFSPINFUNCKEYDETAIL PinFunKeyDetail;
  22.  
  23. //três _wfs_pin_fdk
  24. WFSPINFDK PinKeyA;
  25. WFSPINFDK PinKeyB;
  26. WFSPINFDK PinKeyC;
  27.  
  28. //(..algum código manipulado os _wfs_pin_fdk..)
  29.  
  30. //endereço dos três _wfs_pin_fdk , em array
  31. LPWFSPINFDK PinKeys[3] = {
  32. &PinKeyA,
  33. &PinKeyB,
  34. &PinKeyC
  35. };
  36.  
  37. //passa para lppFDKs o endereço da array de LPWFSPINFDK
  38. PinFunKeyDetail.lppFDKs = PinKeys;
  39.  
  40. //palpite: esse atributo indica quandos elementos são apontados por lppFDKs
  41. PinFunKeyDetail.usNumberFDKs = 3;
  42. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
Standard output is empty