Skip to content
Discussion options

You must be logged in to vote

Apoligies for the delayed reply, we have had our heads down releasing Binary Ninja 5.2 for the past few weeks.

You can retrieve the type id like so:

>>> current_view.get_type_by_name('MyEnum').registered_name.type_id
'3fc496d9-f8a4-4ab5-a4ac-695cf24e4dfb' # Will differ for you

Example:

Screen.Recording.2025-11-20.at.7.21.01.PM.mov
target_typeid = current_view.get_type_by_name('RenderOptions').registered_name.type_id
target_address = 0x140002351
current_function.set_int_display_type(target_address, 0x155, 0xffffffff, IntegerDisplayType.EnumerationDisplayType, enum_display_typeid=target_typeid)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by emesare
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants