WdfDeviceInitSetIoInCallerContextCallback, fonction (wdfdevice.h)

[S’applique uniquement à KMDF]

La méthode WdfDeviceInitSetIoInCallerContextCallback inscrit la fonction de rappel d’événement EvtIoInCallerContext d’un pilote.

Syntaxe

void WdfDeviceInitSetIoInCallerContextCallback(
  [in] PWDFDEVICE_INIT              DeviceInit,
  [in] PFN_WDF_IO_IN_CALLER_CONTEXT EvtIoInCallerContext
);

Paramètres

[in] DeviceInit

Pointeur vers une structure WDFDEVICE_INIT .

[in] EvtIoInCallerContext

Pointeur vers la fonction de rappel EvtIoInCallerContext du pilote.

Valeur de retour

None

Remarques

Si un pilote appelle WdfDeviceInitSetIoInCallerContextCallback, il doit le faire avant d’appeler WdfDeviceCreate. Pour plus d’informations sur l’appel de WdfDeviceCreate, consultez Création d’un objet d’appareil framework.

Pour plus d’informations sur la fonction de rappel d’événement EvtIoInCallerContext , consultez Intercepting an I/O Request before it is Queued.

Exemples

L’exemple de code suivant inscrit la fonction de rappel d’événement EvtIoInCallerContext d’un pilote.

WdfDeviceInitSetIoInCallerContextCallback(
                                          DeviceInit, 
                                          MyEvtIoInCallerContext
                                          );

Configuration requise

Condition requise Valeur
Plateforme cible Universal
Version KMDF minimale 1.0
En-tête wdfdevice.h (include Wdf.h)
Bibliothèque Wdf01000.sys (consultez Gestion de version de la bibliothèque d’infrastructure.)
IRQL <= DISPATCH_LEVEL
Règles de conformité DDI ChildDeviceInitAPI(kmdf),ControlDeviceInitAPI(kmdf), DeviceInitAPI(kmdf), DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf), PdoDeviceInitAPI(kmdf)

Voir aussi

EvtIoInCallerContext