The HINSTANCE
of a win32 application is passed to WinMain
, but is there any other way of determining the current HINSTANCE
(in case you couldn't tell, I'm very new to win32 programming!)? I need to create a window inside of a library and (since the library is cross platform), I'd prefer not to have to pass it in.
If memory serves, GetModuleHandle(NULL);
returns the instance handle.