Partager via


UcmUcsiDeviceInitialize, fonction (ucmucsidevice.h)

Initialise l’extension UCSI (UcmUcsiCx).

Syntaxe

NTSTATUS UcmUcsiDeviceInitialize(
  WDFDEVICE              WdfDevice,
  PUCMUCSI_DEVICE_CONFIG Config
);

Paramètres

WdfDevice

Handle vers un objet d’appareil framework reçu par le pilote client lors d’un appel précédent à WdfDeviceCreate.

Config

Pointeur vers une structure UCMUCSI_DEVICE_CONFIG fournie par l’appelant qui est initialisée en appelant UCMUCSI_DEVICE_CONFIG_INIT.

Valeur de retour

Retourne STATUS_SUCCESS si l’opération réussit. Sinon, retourne un code NTSTATUS approprié.

Remarques

Le pilote client doit appeler UcmUcsiDeviceInitialize dans l’implémentation EVT_WDF_DRIVER_DEVICE_ADD du pilote après avoir appelé WdfDeviceCreate correctement.

Exigences

Exigence Valeur
version minimale de KMDF 1.27
version minimale de UMDF N/A
d’en-tête ucmucsidevice.h (include UcmUcsiCx.h)
bibliothèque UcmUcsiCxStub.lib
IRQL PASSIVE_LEVEL

Voir aussi

EVT_WDF_DRIVER_DEVICE_ADD

UCMUCSI_DEVICE_CONFIG

UCMUCSI_DEVICE_CONFIG_INIT

WdfDeviceCreate