Freigeben über


CloseDriver function

Closes an installable driver.

Syntax

LRESULT WINAPI CloseDriver(
  _In_ HDRVR  hdrvr,
  _In_ LPARAM lParam1,
  _In_ LPARAM lParam2
);

Parameters

  • hdrvr [in]
    Handle of an installable driver instance. The handle must have been previously created by using the OpenDriver function.

  • lParam1 [in]
    32-bit driver-specific data.

  • lParam2 [in]
    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]

Header

Mmsystem.h (include Windows.h)

Library

Winmm.lib

DLL

Winmm.dll

See also

Installable Drivers

Installable Driver Functions