LPDEVICE_NOTIFY_ROUTINE (Compact 2013)
3/26/2014
This function receives device notifications. Client drivers register this function with the USB driver interface to receive device notifications.
Syntax
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] This parameter can be set to the following values.- USB_RESUMED_DEVICE
- USB_SUSPENDED_DEVICE
- USB_CLOSE_DEVICE
- dwInfo1
Not used.
- dwInfo2
Not used.
- dwInfo3
Not used.
- dwInfo4
Not used.
Return Value
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
Header |
usbdi.h |