Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

UfxDeviceProprietaryChargerDetectComplete function (ufxclient.h)

Notifies UFX about a detected proprietary port/charger type.

Syntax

VOID UfxDeviceProprietaryChargerDetectComplete(
 [in] UFXDEVICE UfxDevice,
 [in] PUFX_PROPRIETARY_CHARGER DetectedCharger
);

Parameters

[in] UfxDevice

A handle to a UFX device object that the driver created by calling UfxDeviceCreate.

[in] DetectedCharger

A pointer to a UFX_PROPRIETARY_CHARGER structure.

Return value

None

Remarks

The client driver calls UfxDeviceProprietaryChargerDetectComplete after attempting to detect a proprietary charger on the upstream port, typically from within its EvtDriverDeviceAdd callback function.

Do not call UfxDeviceProprietaryChargerDetectComplete before UFX calls the client driver's EVT_UFX_DEVICE_DETECT_PROPRIETARY_CHARGER callback function.

The following snippet shows how a client driver calls UfxDeviceProprietaryChargerDetectComplete:

 UfxDeviceProprietaryChargerDetectComplete(
 ChargerContext->UfxDevice,
 &pControllerData->DetectedCharger);

Requirements

Requirement Value
Minimum supported client Windows 10
Target Platform Windows
Header ufxclient.h
Library ufxstub.lib
IRQL PASSIVE_LEVEL

Feedback

Was this page helpful?

Additional resources