USBPM_EVENT_TYPE enumeration (usbpmapi.h)

Defines values for types of events. This enumeration is used in the EVT_USBPM_EVENT_CALLBACK callback function.

Syntax

typedef enum _USBPM_EVENT_TYPE {
  UsbPmEventPolicyManagerArrival,
  UsbPmEventPolicyManagerRemoval,
  UsbPmEventHubArrival,
  UsbPmEventHubRemoval,
  UsbPmEventConnectorStateChange
} USBPM_EVENT_TYPE;

Constants

 
UsbPmEventPolicyManagerArrival
The Policy Manager has arrived. This is the first callback event after client registration.
UsbPmEventPolicyManagerRemoval
The Policy Manager has left.
UsbPmEventHubArrival
A new connector hub has arrived.
UsbPmEventHubRemoval
A connector hub has been removed.
UsbPmEventConnectorStateChange
The connector state has changed.

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

EVT_USBPM_EVENT_CALLBACK

USBPM_EVENT_CALLBACK_PARAMS