Bewerken

Delen via


UcmUcsiDeviceInitialize function (ucmucsidevice.h)

Initializes the UCSI extension (UcmUcsiCx).

Syntax

NTSTATUS UcmUcsiDeviceInitialize(
  WDFDEVICE              WdfDevice,
  PUCMUCSI_DEVICE_CONFIG Config
);

Parameters

WdfDevice

A handle to a framework device object that the client driver received in a previous call to WdfDeviceCreate.

Config

A pointer to a caller-supplied UCMUCSI_DEVICE_CONFIG structure that is initialized by calling UCMUCSI_DEVICE_CONFIG_INIT.

Return value

Returns STATUS_SUCCESS if the operation succeeds. Otherwise, returns an appropriate NTSTATUS code.

Remarks

The client driver must call UcmUcsiDeviceInitialize in the driver's EVT_WDF_DRIVER_DEVICE_ADD implementation after calling WdfDeviceCreate successfully.

Requirements

Requirement Value
Minimum KMDF version 1.27
Minimum UMDF version N/A
Header ucmucsidevice.h (include UcmUcsiCx.h)
Library UcmUcsiCxStub.lib
IRQL PASSIVE_LEVEL

See also

EVT_WDF_DRIVER_DEVICE_ADD

UCMUCSI_DEVICE_CONFIG

UCMUCSI_DEVICE_CONFIG_INIT

WdfDeviceCreate