Skip to content

Latest commit

 

History

History
81 lines (58 loc) · 3.25 KB

nf-ucmmanager-ucmconnectortypeccurrentadchanged.md

File metadata and controls

81 lines (58 loc) · 3.25 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:ucmmanager.UcmConnectorTypeCCurrentAdChanged
UcmConnectorTypeCCurrentAdChanged function (ucmmanager.h)
Notifies the USB connector manager framework extension (UcmCx) when the specified connector changes the current advertisement. Either the connector changes it (when it is DFP/Source), or the partner changed it (when it is UFP/Sink).
buses\ucmconnectortypeccurrentadchanged.htm
usbref
05/07/2018
UcmConnectorTypeCCurrentAdChanged function
UcmConnectorTypeCCurrentAdChanged, UcmConnectorTypeCCurrentAdChanged method [Buses], buses.ucmconnectortypeccurrentadchanged, ucmmanager/UcmConnectorTypeCCurrentAdChanged
ucmmanager.h
Ucmcx.h
Windows
Windows 10
Windows Server 2016
1.15
2.15
UcmCxstub.lib
PASSIVE_LEVEL
Windows
UcmConnectorTypeCCurrentAdChanged
ucmmanager/UcmConnectorTypeCCurrentAdChanged
APIRef
kbSyntax
COM
UcmCxstub.lib
UcmCxstub.dll
UcmConnectorTypeCCurrentAdChanged

UcmConnectorTypeCCurrentAdChanged function

-description

Notifies the USB connector manager framework extension (UcmCx) when the specified connector changes the current advertisement. Either the connector changes it (when it is DFP/Source), or the partner changed it (when it is UFP/Sink).

-parameters

-param Connector [in]

Handle to the connector object that the client driver received in the previous call to UcmConnectorCreate.

-param CurrentAdvertisement [in]

The new current advertisement of the connector indicated by one of the UCM_TYPEC_CURRENT-typed flags.

-returns

UcmConnectorTypeCCurrentAdChanged returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method can return an appropriate NTSTATUS value.

-remarks

When using a Type-C connector for charging, the partner connector sends a current advertisement when it's attached to the local connector. That initial advertisement is report to UcmCx by calling UcmConnectorTypeCAttach. During the lifetime of the connection, the current level advertised by the source might change. The client driver must notify UcmCx about that change by calling method.

-see-also

UcmConnectorCreate

UcmConnectorTypeCAttach

UcmConnectorTypeCCurrentAdChanged