RegisterNotificationRoutine

This function registers a callback for device notifications.

BOOL RegisterNotificationRoutine(
  USB_HANDLE hDevice,
  LPDEVICE_NOTIFY_ROUTINE lpNotifyRoutine,
  LPVOID lpvNotifyParameter 
);

Parameters

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

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

Currently, the only notification that a callback can be registered for is USB_CLOSE_DEVICE.

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Usbd.hpp.

See Also

UnRegisterNotificationRoutine | USB Drivers

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.