Share via


New Handle Types

OverviewHow Do I

In addition to the existing Windows handle types such as HWND, HDC, HBRUSH, and so on, WINDOWS.H defines the following new handle types. They are particularly important if STRICT type checking is enabled, but you can use them even if you do not define STRICT.

Handle Description
HINSTANCE Instance handle type
HMODULE Module handle type
HBITMAP Bitmap handle type
HLOCAL Local handle type
HGLOBAL Global handle type
HTASK Task handle type
HFILE File handle type
HRSRC Resource handle type
HGDIOBJ Generic GDI object handle type (except HMETAFILE)
HMETAFILE Metafile handle type
HDWP DeferWindowPos( ) handle
HACCEL Accelerator table handle
HDRVR Driver handle