次の方法で共有


LPDEVICE_NOTIFY_ROUTINE (Windows Embedded CE 6.0)

1/6/2010

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] Set to 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
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

USB Host Driver Functions
LPREGISTER_NOTIFICATION_ROUTINE