次の方法で共有


LPREGISTER_NOTIFICATION_ROUTINE (Windows Embedded CE 6.0)

1/6/2010

This function registers a callback function for device notifications.

Syntax

typedef BOOL (* LPREGISTER_NOTIFICATION_ROUTINE)(
  USB_HANDLE hDevice,
  LPDEVICE_NOTIFY_ROUTINE lpNotifyRoutine,
  LPVOID lpvNotifyParameter
);

Parameters

  • hDevice
    [in] Handle to a USB device.
  • lpvNotifyParameter
    [in] Pointer to the parameter to pass to lpNotifyRoutine.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

Currently, the only notification that a callback function can be registered for is USB_CLOSE_DEVICE.

Requirements

Header usbdi.h
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

USB Host Driver Functions
LPDEVICE_NOTIFY_ROUTINE
LPUN_REGISTER_NOTIFICATION_ROUTINE