Skip to content

How can I add an enum to Binary Ninja? #5786

Closed Answered by psifertex
psifertex asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks psifertex for asking such a question I'm sure other people have. 😉

There are two ways you can do this. The first is the much more robust scalable way to add lots of new types. Specifically, once you've identified the source of your enum as you linked above, you can use the import header file interface in the UI to include the entire set of headers. You'll probably want to follow the guide on importing system headers, specifically the section on windows system headers.

However, the quicker and easier way is to just manually create an enum yourself. Either find the exact enum you want, or just create your own:

enum FileType
{
    S_IFIFO = 0x1000,
    S_IFCHR = 0x2000,
    S_IFDIR = 0…

Replies: 1 comment

Comment options

psifertex
Jul 23, 2024
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by psifertex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant