USBD_CloseHandle - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// usbdlib.h

VOID USBD_CloseHandle(
  [in] USBD_HANDLE USBDHandle
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-usbdlib-usbd_closehandle)

USBD_CloseHandle function

Description

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.

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.

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.

See also

Allocating and Building URBs

USBD_CreateHandle