다음을 통해 공유


LPDISABLE_DEVICE (Windows CE 5.0)

Send Feedback

This function disables an attached device by disabling the port on the universal serial bus (USB) hub. After the attached device is disabled, it can be optionally re-enabled by the USB host controller.

typedef BOOL (* LPDISABLE_DEVICE)(  USB_HANDLE hDevice ,  BOOL fResetDevice ,  UCHAR bInterfaceNumber);

Parameters

  • hDevice
    [in] Handle to a USB device.
  • fResetDevice
    [in] Optional. If set to TRUE the device will be re-enumerated. If set to FALSE, then user has to physically detach and re-attach the device to get it re-enumerated.
  • bInterfaceNumber
    [in] Interface number being disabled on the device.

Return Values

Returns TRUE if the operation is successful. Otherwise, returns FALSE.

Remarks

For multiple interface devices, if multiple interfaces are activated, the device is only disabled after DisableDevice is called on all active interfaces.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Usbdi.h.

See Also

LPRESUME_DEVICE | LPSUSPEND_DEVICE

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.