Funzione WdfDeviceInitSetIoInCallerContextCallback (wdfdevice.h)

[Si applica solo a KMDF]

Il metodo WdfDeviceInitSetIoInCallerContextCallback registra la funzione di callback dell'evento EvtIoInCallerContext di un driver.

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 EvtIoInCallerContext del driver.

Valore restituito

nessuno

Osservazioni

Se un driver chiama WdfDeviceInitSetIoInCallerContextCallback, deve farlo prima di chiamare WdfDeviceCreate. Per altre informazioni sulla chiamata a WdfDeviceCreate, vedere Creazione di un oggetto dispositivo framework.

Per altre informazioni sulla funzione di callback degli eventi EvtIoInCallerContext , vedere Intercettazione di una richiesta di I/O prima che venga accodata.

Esempio

Nell'esempio di codice seguente viene registrata la funzione di callback dell'evento EvtIoInCallerContext di un driver.

WdfDeviceInitSetIoInCallerContextCallback(
                                          DeviceInit, 
                                          MyEvtIoInCallerContext
                                          );

Requisiti

Requisito Valore
Piattaforma di destinazione Universale
Versione KMDF minima 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)

Vedi anche

EvtIoInCallerContext