Jump to content
Excelsior Forums

JDGamache

Members
  • Content count

    0
  • Joined

  • Last visited

Posts posted by JDGamache


  1. hi all!

    How would I map this structure as a class extending Structure in java ?

    Here is my structure in C

    /*

    typedef struct _ft_device_list_info_node {

    ULONG Flags;

    ULONG Type;

    ULONG ID;

    DWORD LocId;

    char SerialNumber[16];

    char Description[64];

    FT_HANDLE ftHandle;

    } FT_DEVICE_LIST_INFO_NODE;

    */

    what I tried ...

    public class InfoNode extends Structure {

    public InfoNode() {

    }

    long Flags;

    long Type;

    long ID;

    long LocId;

    String SerialNumber;

    String Description;

    long ftHandle;

    public String defineLayout(){return "long Flags, long Type, long ID, long LocId, char[16] SerialNumber, char[64] Description, long ftHandle";}

    }

×