UcmConnectorChargingStateChanged function (ucmmanager.h)

Notifies the USB connector manager framework extension (UcmCx) with the updated charging state of the partner connector.

Syntax

NTSTATUS UcmConnectorChargingStateChanged(
  [in] UCMCONNECTOR       Connector,
  [in] UCM_CHARGING_STATE ChargingState
);

Parameters

[in] Connector

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

[in] ChargingState

One of the UCM_CHARGING_STATE-typed flags that indicates the new charging state.

Return value

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

Remarks

If the client driver determines that the charging state is non-optimal, it should report slow or trickle charging to UcmCx. Then, the operating system notifies the user of this condition.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Target Platform Windows
Minimum KMDF version 1.15
Minimum UMDF version 2.15
Header ucmmanager.h (include Ucmcx.h)
Library UcmCxstub.lib
IRQL PASSIVE_LEVEL

See also

UcmConnectorCreate