GetDriverModuleHandle function

Retrieves the instance handle of the module that contains the installable driver.


HMODULE GetDriverModuleHandle(
  HDRVR hDriver



Handle of the installable driver instance. The handle must have been previously created by using the OpenDriver function.

Return Value

Returns an instance handle of the driver module if successful or NULL otherwise.


Minimum supported client Windows 2000 Professional [desktop apps only],Installable Drivers, Installable Driver Functions
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header mmiscapi.h (include Mmiscapi.h, Windows.h)
Library Winmm.lib
DLL Winmm.dll

See Also

Installable Driver Functions

Installable Drivers