Condividi tramite


EVT_ACX_OBJECT_PREPROCESS_REQUEST funzione di callback (acxrequest.h)

Il callback EVT_ACX_OBJECT_PREPROCESS_REQUEST viene usato dal driver per pre-elaborare i tipi WDFREQUEST di I/O.

Sintassi

EVT_ACX_OBJECT_PREPROCESS_REQUEST EvtAcxObjectPreprocessRequest;

void EvtAcxObjectPreprocessRequest(
  ACXOBJECT Object,
  ACXCONTEXT DriverContext,
  WDFREQUEST Request
)
{...}

Parametri

Object

Oggetto ACX associato alla richiesta. Per altre informazioni sugli oggetti ACX, vedere Riepilogo degli oggetti ACX.

DriverContext

Contesto del driver definito dall'oggetto ACXCONTEXT.

Request

Oggetto WDFREQUEST.

Per altre informazioni sull'uso degli oggetti richiesta WDF, vedere Creating Framework Request Objects e intestazione wdfrequest.h.

Valore restituito

Nessuno

Osservazioni

Esempio

Di seguito è riportato un esempio di utilizzo.

EVT_ACX_OBJECT_PREPROCESS_REQUEST   CodecR_EvtCircuitRequestPreprocess;

...

VOID
CodecR_EvtCircuitRequestPreprocess(
    _In_    ACXOBJECT  Object,
    _In_    ACXCONTEXT DriverContext,
    _In_    WDFREQUEST Request
    )
/*++

Routine Description:

    This function is an example of a preprocess routine.

--*/
{
    PAGED_CODE();

    UNREFERENCED_PARAMETER(DriverContext);
    
    ASSERT(Object != NULL);
    ASSERT(DriverContext);
    ASSERT(Request);

    // Add the handling of the request here.
    // Driver is responsible for completing the request when done.

    //
    // Else, just give the request back to ACX.
    //
    (VOID)AcxCircuitDispatchAcxRequest((ACXCIRCUIT)Object, Request);
}

Requisiti ACX

versione minima di ACX: 1.0

Per altre informazioni sulle versioni di ACX, vedere panoramica della versione ACX.

Fabbisogno

Requisito Valore
intestazione acxrequest.h
IRQL PASSIVE_LEVEL

Vedere anche