Bewerken

Delen via


EVT_UFX_DEVICE_PROPRIETARY_CHARGER_DETECT callback function (ufxclient.h)

The client driver's implementation to initiate proprietary charger detection.

Syntax

EVT_UFX_DEVICE_PROPRIETARY_CHARGER_DETECT EvtUfxDeviceProprietaryChargerDetect;

void EvtUfxDeviceProprietaryChargerDetect(
  [in] UFXDEVICE unnamedParam1
)
{...}

Parameters

[in] unnamedParam1

The handle to a USB device object that the client driver received in a previous call to the UfxDeviceCreate method.

Return value

None

Remarks

EVT_UFX_DEVICE_DETECT_PROPRIETARY_CHARGER is an optional event callback. The client driver is required to implement this event callback only if it supports proprietary charger detection. The driver indicates support in the UfxDeviceCreate call by setting PdcpSupported to TRUE in UFX_DEVICE_CAPABILITIES. If the client driver does not support the functionality, the EvtDeviceProprietaryChargerDetect, EvtDeviceProprietaryChargerSetProperty, and EvtDeviceProprietaryChargerReset members of the UFX_DEVICE_CALLBACKS structure must be set to NULL in UfxDeviceCreate.

The client driver indicates completion of this event by calling the UfxDeviceProprietaryChargerDetectComplete method.

The client driver sends a request to the lower filter driver to determine if a proprietary charger is present. In response, the filter driver provides a GUID for each charger type it supports, and a list of that charger's properties. If a specific charger is configurable, the filter driver also provides a list of supported PropertyIDs and their possible values to configure the charger.

Requirements

Requirement Value
Target Platform Windows
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header ufxclient.h
IRQL PASSIVE_LEVEL

See also