USBPM_EVENT_CALLBACK_PARAMS structure (usbpmapi.h)
Contains the details of the events related to changes in policy manager arrival/removal, hub arrival/removal or connector state change. This structure is used in the EVT_USBPM_EVENT_CALLBACK callback function.
Syntax
typedef struct _USBPM_EVENT_CALLBACK_PARAMS {
USBPM_EVENT_TYPE EventType;
union {
struct {
ULONG AccessGranted;
} PolicyManagerArrival;
struct {
USBPM_HUB HubHandle;
} HubArrivalRemoval;
struct {
USBPM_CONNECTOR ConnectorHandle;
} ConnectorStateChange;
} EventData;
PVOID Context;
} USBPM_EVENT_CALLBACK_PARAMS, *PUSBPM_EVENT_CALLBACK_PARAMS;
Members
EventType
A USBPM_EVENT_TYPE-type value that indicates the type of event.
EventData
A union that contains the event-specific data. The client driver should set the event data in the inner structure related to the event.
EventData.PolicyManagerArrival
Data about the Policy Manager arrival event.
EventData.PolicyManagerArrival.AccessGranted
EventData.HubArrivalRemoval
Data about the hub arrival or removal event.
EventData.HubArrivalRemoval.HubHandle
The handle to the connector hub.
EventData.ConnectorStateChange
Data about the connector state change event.
EventData.ConnectorStateChange.ConnectorHandle
The handle to the connector.
Context
The context which is provided by the client driver in a previous call to UsbPm_Register.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1809 |
Minimum KMDF version | 1.27 |
Minimum UMDF version | 2.27 |
Header | usbpmapi.h |