次の方法で共有


LPSUSPEND_DEVICE (Windows Embedded CE 6.0)

1/6/2010

This function suspends an attached device by suspending the port on the universal serial bus (USB) hub. After the USB hub suspends the device, the device can be resumed by the LPRESUME_DEVICE function or by a global resume sent from the USB bus.

Syntax

typedef BOOL (* LPSUSPEND_DEVICE)(
  USB_HANDLE hDevice ,
  UCHAR bInterfaceNumber 
);

Parameters

  • hDevice
    [in] Handle to a USB device.
  • bInterfaceNumber
    [in] Interface number being suspended on the device.

Return Value

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

Remarks

For multiple interface devices, if multiple interfaces are activated, the device is only suspended after SuspendDevice is called on all active interfaces*.*

Requirements

Header usbdi.h
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

USB Host Driver Functions
LPDISABLE_DEVICE
LPRESUME_DEVICE