EVT_USBPM_EVENT_CALLBACK callback function (usbpmapi.h)

Sends notifications about hub arrival/removal and connector state changes.

Syntax

EVT_USBPM_EVENT_CALLBACK EvtUsbpmEventCallback;

void EvtUsbpmEventCallback(
  [In] PUSBPM_EVENT_CALLBACK_PARAMS Params
)
{...}

Parameters

[In] Params

A pointer to the caller-supplied USBPM_EVENT_CALLBACK_PARAMS structure that the client driver fills with event-specific data.

Return value

None

Remarks

The client driver registers its implementation of this callback function by setting the appropriate member of USBPM_CLIENT_CONFIG and then calling UsbPm_Register. Policy Manager can invoke the client driver's implementation before [UsbPm_Register] returns.

To stop Policy Manager from invoking the callback function, the client driver must call UsbPm_Deregister.

Callback function calls are serialized. Only one call is active at a time.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809
Minimum KMDF version 1.27
Minimum UMDF version 2.27
Header usbpmapi.h

See also

USBPM_EVENT_CALLBACK_PARAMS