RegisterNotificationRoutine

This function registers a callback for device notifications.

Syntax

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.

This function is defined in the Mousedrv.cpp file.

See Also

UnRegisterNotificationRoutine