For the complete documentation index, see llms.txt. This page is also available as Markdown.

LoadHeaderFile

Description

This command allows you to apply type declarations from a C header file to the program. IDA reads and parses the specified header file with its clang-based parser, the same way a compiler front-end does. C, C++, Objective-C and Objective-C++ headers are supported out of the box. Note:

  • Only type declarations are collected. The function definitions in the input file are skipped.

Don't forget to specify the compiler and memory model in the compiler setup dialog box (Options → Compiler...) before loading a header file. All type declarations found in the input file are stored in the current database in the form of a type library. These type declarations can be used to define new structure and enumeration definitions.

In the case of an error in the input file, the error messages appear in the message window. In any case, the type declarations that are already parsed are not deleted from the database.

Last updated

Was this helpful?