Share via


LPSUSPEND_DEVICE (Compact 2013)

3/26/2014

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 by the USB system.

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

See Also

Reference

USB Driver Functions
LPDISABLE_DEVICE
LPRESUME_DEVICE