[win32] Instance handle (HINSTANCE)

[win32] Instance handle (HINSTANCE)

HINSTANCE = HMODULE. Handed to you as a parameter of the WinMain function. Alternatively you can find out your own HINSTANCE by calling GetModuleHandle(0)

The operating system uses this value to identify the executable (EXE) when it is loaded in memory. The instance handle is needed for certain Windows functions–for example, to load icons or bitmaps.

Calendar October 22, 2023