0

I have a struct in IDA Pro that I want to export to a c-style struct. For example:

00000000 ICreateErrorInfo struc ; (sizeof=0x4, align=0x4, standard type)
00000000                                         ; XREF: sub_73C9D0r
00000000 lpVtbl          dd ?                    ; offset
00000004 ICreateErrorInfo ends

I want to export the above to something similar to:

typedef struct ICreateErrorInfo {
    int lpVtbl;
} ICreateErrorInfo;

I am also using HexRaysCodeXplorer if that helps.

1

I've found the answer here.

It is possible to export a structure by going in Local Types (Shift+F1). Then select the structure you want to export and in the contextual menu choose either Edit or Export to header file. It is possible to export multiple structures by holding Shift when selecting them.

  • 1
    You can also export from the file menu. File -> Produce File -> Create C header file.... – tmr232 Jul 12 '16 at 18:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.