USBPM_EVENT_CALLBACK_PARAMS - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// usbpmapi.h

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;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-usbpmapi-_usbpm_event_callback_params)

_USBPM_EVENT_CALLBACK_PARAMS structure

Description

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.

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.

Remarks

See also