LPREGISTER_NOTIFICATION_ROUTINE (Windows CE 5.0)

Send Feedback

This function registers a callback function for device notifications.

typedef BOOL (* LPREGISTER_NOTIFICATION_ROUTINE)(  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 function of type LPDEVICE_NOTIFY_ROUTINE.
  • 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 function can be registered for is USB_CLOSE_DEVICE.

Requirements

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

See Also

LPDEVICE_NOTIFY_ROUTINE | LPUN_REGISTER_NOTIFICATION_ROUTINE

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.