WdfDeviceInitSetIoInCallerContextCallback, fonction (wdfdevice.h)
[S’applique uniquement à KMDF]
La méthode WdfDeviceInitSetIoInCallerContextCallback inscrit la fonction de rappel d’événement evtIoInCallerContext du 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
Aucun
Remarques
Si un pilote appelle WdfDeviceInitSetIoInCallerContextCallback, il doit le faire avant d’appeler WdfDeviceCreate. Pour plus d’informations sur l’appel WdfDeviceCreate, consultez Création d’un objet d’appareil Framework.
Pour plus d’informations sur la fonction de rappel d’événements EvtIoInCallerContext, consultez Intercepter une requête d’E/S avant d’être mise en file d’attente.
Exemples
L’exemple de code suivant inscrit la fonction de rappel d’événement evtIoInCallerContext du pilote.
WdfDeviceInitSetIoInCallerContextCallback(
DeviceInit,
MyEvtIoInCallerContext
);
Exigences
Exigence | Valeur |
---|---|
plateforme cible | Universel |
version minimale de KMDF | 1.0 |
d’en-tête | wdfdevice.h (include Wdf.h) |
bibliothèque | Wdf01000.sys (voir Versioning de la bibliothèque Framework.) |
IRQL | <= DISPATCH_LEVEL |
règles de conformité DDI | childDeviceInitAPI(kmdf), ControlDeviceInitAPI(kmdf), DeviceInitAPI(kmdf), DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf), PdoDeviceInitAPI(kmdf) |