Skip to content

Instantly share code, notes, and snippets.

@azhlm
Created February 6, 2025 08:22
Show Gist options
  • Save azhlm/0019bbea43857c9c399a79c09d6154a5 to your computer and use it in GitHub Desktop.
Save azhlm/0019bbea43857c9c399a79c09d6154a5 to your computer and use it in GitHub Desktop.
Binja - get API type
## Get the type of any API from specific DLL to apply to 'Override Call Type'
def gt(dll,api):
lib = bv.platform.get_type_libraries_by_name(dll + '.dll')[0]
type = bv.import_library_object(api, lib)
return type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment