// acxrequest.h
EVT_ACX_OBJECT_PREPROCESS_REQUEST EvtAcxObjectPreprocessRequest;
VOID EvtAcxObjectPreprocessRequest(
ACXOBJECT Object,
ACXCONTEXT DriverContext,
WDFREQUEST Request
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The EVT_ACX_OBJECT_PREPROCESS_REQUEST callback is used by the driver to preprocess I/O WDFREQUESTs.
ObjectAn ACX object associated with the request. For more information about ACX objects, see Summary of ACX Objects.
DriverContextThe driver context defined by the ACXCONTEXT object.
RequestAn WDFREQUEST object.
For more information about working with WDF request objects, see Creating Framework Request Objects and wdfrequest.h header.
Example usage is shown below.
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);
}
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.