// ucmmanager.h
typedef struct _UCM_CONNECTOR_PD_CONFIG {
ULONG Size;
BOOLEAN IsSupported;
ULONG SupportedPowerRoles;
PFN_UCM_CONNECTOR_SET_POWER_ROLE EvtSetPowerRole;
} UCM_CONNECTOR_PD_CONFIG, *PUCM_CONNECTOR_PD_CONFIG;
View the official Windows Driver Kit DDI referenceNo description available.
Describes the Power Delivery 2.0 capabilities of the connector.
SizeSize of the UCM_CONNECTOR_PD_CONFIG structure.
IsSupportedIf TRUE, a PD role is supported. (Default).
If FALSE, a PD role is not supported.
SupportedPowerRolesIndicates the operating mode of the connector. This value is a bitwise OR of UCM_POWER_ROLE-typed flags.
EvtSetPowerRoleA pointer to the Policy Manager's implementation of the EVT_UCM_CONNECTOR_SET_POWER_ROLE event callback.
Initialize this structure by calling UCM_CONNECTOR_PD_CONFIG_INIT. An initialized UCM_CONNECTOR_TYPEC_CONFIG structure is set to the PdConfig member of the UCM_CONNECTOR_CONFIG structure, which is an input parameter value to UcmConnectorCreate that is called by Policy Manager to create a connector object.