RxSetMinirdrCancelRoutine function

RxSetMinirdrCancelRoutine is called by a network mini-redirector driver to set up a network mini-redirector cancel routine for an RX_CONTEXT structure.

Syntax

NTSTATUS RxSetMinirdrCancelRoutine(
  _Inout_ PRX_CONTEXT   RxContext,
  _In_    PMRX_CALLDOWN MRxCancelRoutine
);

Parameters

RxContext

A pointer to the RX_CONTEXT structure.

MRxCancelRoutine

A pointer to a cancel routine.

Return Value

RxSetMinirdrCancelRoutine returns STATUS_SUCCESS on success or one of the following error values on failure:

Return code Description
STATUS_CANCELLED
The RxContext parameter was already canceled. The error will be returned if the Flags member of RxContext has the RX_CONTEXT_FLAG_CANCELLED bit set.

Remarks

The RxSetMinirdrCancelRoutine routine sets the MRxCancelRoutine member of the RxContext parameter to the value of the MRxCancelRoutine parameter. This operation is protected by a spinlock.

Requirements

   
Target Platform Desktop
Header rxcontx.h (include Mrx.h, Rxcontx.h)
Library NtosKrnl.exe
IRQL "<= APC_LEVEL"

See Also

RxDereference

RxPrepareContextForReuse

RxCreateRxContext

RxCompleteRequest_Real

RX_CONTEXT

RxInitializeContext

RxResumeBlockedOperations_Serially

RxDereferenceAndDeleteRxContext_Real

RxCompleteRequest

Send comments about this topic to Microsoft