Share via


LPREGISTER_NOTIFICATION_ROUTINE (Compact 2013)

3/26/2014

This function registers a callback function for device notifications.

Syntax

typedef BOOL (* LPREGISTER_NOTIFICATION_ROUTINE)(
  USB_HANDLE hDevice,
  LPDEVICE_NOTIFY_ROUTINE lpNotifyRoutine,
  LPVOID lpvNotifyParameter
);

Parameters

  • hDevice
    [in] Handle to a USB device.
  • lpvNotifyParameter
    [in] Pointer to the parameter to pass to lpNotifyRoutine.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

A callback function can be registered for the following notifications.

  • USB_RESUMED_DEVICE
  • USB_SUSPENDED_DEVICE
  • USB_CLOSE_DEVICE

Requirements

Header

usbdi.h

See Also

Reference

USB Driver Functions
LPDEVICE_NOTIFY_ROUTINE
LPUN_REGISTER_NOTIFICATION_ROUTINE