Notifies the USB connector manager framework extension (UcmCx) when a partner connector is attached.
NTSTATUS UcmConnectorTypeCAttach( UCMCONNECTOR Connector, PUCM_CONNECTOR_TYPEC_ATTACH_PARAMS Params );
Handle to the connector object that the client driver received in the previous call to UcmConnectorCreate.
UcmConnectorTypeCAttach returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method can return an appropriate NTSTATUS value.
When a connection to a partner connector is detected, the client driver calls this method to notify UcmCx with information about the partner connector. That information includes the connector role, down stream or upstream facing port, the amount of current connector can draw or deliver, and charging state. UcmCx uses that information to perform certain operations. For example, it may determine the role of the partner connector attached, and configure the USB controller in host or peripheral mode.
Typically, every UcmConnectorTypeCAttach call has a subsequent UcmConnectorTypeCDetach call to notify UcmCx when the partner connector is detached. However, when a powered cable without an upstream port is attached (indicated by Params->PortPartnerType set to UcmTypeCPortStatePoweredCableNoUfp). The client driver can call UcmConnectorTypeCAttach again when a connection is detected to the upstream port to the powered cable.
|Minimum supported client||Windows 10|
|Minimum supported server||Windows Server 2016|
|Minimum KMDF version||1.15|
|Minimum UMDF version||2.15|
|Header||ucmmanager.h (include Ucmcx.h)|
Send feedback about: