Skip to main content

get_instance_handle

Function get_instance_handle 

Source
pub fn get_instance_handle() -> HINSTANCE
Expand description

Returns the [HINSTANCE] of the module that contains the calling code.

Unlike GetModuleHandleW(None), this also works correctly inside DLLs.