Hardware Dev Center

Expand Minimize

USBD_CloseHandle routine

The USBD_CloseHandle routine is called by a USB client driver to close a USBD handle and release all resources associated with the driver's registration.

Syntax


VOID USBD_CloseHandle(
  _In_ USBD_HANDLE USBDHandle
);

Parameters

USBDHandle [in]

USBD handle to be closed. The handle is retrieved by the client driver in a previous call to the USBD_CreateHandle routine.

Return value

This routine does not return a value.

Remarks

A client driver should call USBD_CloseHandle in the driver's routine that handles the IRP_MN_REMOVE_DEVICE IRP. The client driver must call the routine before sending the IRP down the USB driver stack.

Requirements

Target platform

Desktop

Version

Requires DDK for Windows 8. Targets Windows Vista and later versions of the Windows operating system.

Header

Usbdlib.h

Library

Usbdex.lib

IRQL

PASSIVE_LEVEL

See also

USBD_CreateHandle
Allocating and Building URBs

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft