Funzione WdfDeviceInitSetIoInCallerContextCallback (wdfdevice.h)
[Si applica solo a KMDF]
Il metodo WdfDeviceInitSetIoInCallerContextCallback registra la funzione di callback di un driver EvtIoInCallerContext.
Sintassi
void WdfDeviceInitSetIoInCallerContextCallback(
[in] PWDFDEVICE_INIT DeviceInit,
[in] PFN_WDF_IO_IN_CALLER_CONTEXT EvtIoInCallerContext
);
Parametri
[in] DeviceInit
Puntatore a una struttura WDFDEVICE_INIT.
[in] EvtIoInCallerContext
Puntatore alla funzione di callback del driver EvtIoInCallerCon text.
Valore restituito
Nessuno
Osservazioni
Se un driver chiama WdfDeviceInitSetIoInCallerContextCallback, deve farlo prima di chiamare WdfDeviceCreate. Per altre informazioni sulla chiamata di WdfDeviceCreate, vedere Creating a Framework Device Object.
Per altre informazioni sulla funzione di callback di eventi EvtIoInCallerContext, vedere Intercettare una richiesta di I/O prima che venga accodata.
Esempi
Nell'esempio di codice seguente viene registrata la di un driver EvtIoInCallerContext funzione di callback degli eventi.
WdfDeviceInitSetIoInCallerContextCallback(
DeviceInit,
MyEvtIoInCallerContext
);
Fabbisogno
Requisito | Valore |
---|---|
piattaforma di destinazione | Universale |
versione minima di KMDF | 1.0 |
intestazione | wdfdevice.h (include Wdf.h) |
libreria | Wdf01000.sys (vedere Controllo delle versioni della libreria framework). |
IRQL | <= DISPATCH_LEVEL |
regole di conformità DDI | ChildDeviceInitAPI(kmdf), ControlDeviceInitAPI(kmdf), DeviceInitAPI(kmdf), DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf), PdoDeviceInitAPI(kmdf) |