DrvGetModuleHandle

Retrieves the instance handle of the module that contains the installable driver. This function is provided for compatibility with previous versions of Windows.

WINMMAPI HMODULE WINAPI DrvGetModuleHandle(HDRVR hDriver); 
 

Parameters

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.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in mmsystem.h.
  Import Library: Use winmm.lib.