Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function receives device notifications. Client drivers register this function with the USB driver interface to receive device notifications.
typedef BOOL (WINAPI *LPDEVICE_NOTIFY_ROUTINE)( LPVOID lpvNotifyParameter, DWORD dwCode, LPDWORD* dwInfo1, LPDWORD* dwInfo2, LPDWORD* dwInfo3, LPDWORD* dwInfo4);
Parameters
- lpvNotifyParameter
[in] Device context. - dwCode
[in] Set to USB_CLOSE_DEVICE. - dwInfo1
Not used. - dwInfo2
Not used. - dwInfo3
Not used. - dwInfo4
Not used.
Return Values
If a client driver processes a message it should return TRUE. If a client driver does not process a message it should return FALSE.
Remarks
All client drivers are required to process the USB_CLOSE_DEVICE message.
USB notification messages are passed to the client driver's LPDEVICE_NOTIFY_ROUTINE function. The client driver registers its notification routine with the LPREGISTER_NOTIFICATION_ROUTINE function.
Requirements
OS Versions: Windows CE 2.10 and later.
Header: Usbdi.h.
See Also
LPREGISTER_NOTIFICATION_ROUTINE
Send Feedback on this topic to the authors