// ucmmanager.h
typedef struct _UCM_CONNECTOR_TYPEC_ATTACH_PARAMS {
ULONG Size;
UCM_TYPEC_PARTNER Partner;
UCM_TYPEC_CURRENT CurrentAdvertisement;
UCM_CHARGING_STATE ChargingState;
} UCM_CONNECTOR_TYPEC_ATTACH_PARAMS, *PUCM_CONNECTOR_TYPEC_ATTACH_PARAMS;
View the official Windows Driver Kit DDI referenceNo description available.
Describes the partner that is currently attached to the connector.
SizeSize of the UCM_CONNECTOR_TYPEC_ATTACH_PARAMS structure.
PartnerThe type of partner attached to the connector, indicated by a UCM_TYPEC_PARTNER value.
CurrentAdvertisementPower sourcing capabilities of: the partner port when PortPartnerType is UcmTypeCPortStateDfp; the local port when PortPartnerType is not UcmTypeCPortStateDfp.
ChargingStateOptional. Charging state of the port indicated by one of the UCM_CHARGING_STATE-typed flags.
Initialize this structure by calling UCM_CONNECTOR_TYPEC_ATTACH_PARAMS_INIT. An initialized UCM_CONNECTOR_TYPEC_ATTACH_PARAMS structure is an input parameter value to UcmConnectorTypeCAttach that is used by the client driver to notify UcmCx about the Attached state of the port.