CloseDriver function

Closes an installable driver.

Syntax

LRESULT CloseDriver(
  HDRVR  hDriver,
  LPARAM lParam1,
  LPARAM lParam2
);

Parameters

hDriver

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

lParam1

32-bit driver-specific data.

lParam2

32-bit driver-specific data.

Return Value

Returns nonzero if successful or zero otherwise.

Remarks

The function passes the lParam1 and lParam2 parameters to the DriverProc function of the installable driver.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
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