pub fn set_hinstance(hinst: *mut c_void)
Records the module handle. Called from the generated DllMain.
DllMain