Bewerken

Delen via


RxSetMinirdrCancelRoutine function (rxcontx.h)

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(
  [in, out] IN OUT PRX_CONTEXT RxContext,
  [in]      IN PMRX_CALLDOWN   MRxCancelRoutine
);

Parameters

[in, out] RxContext

A pointer to the RX_CONTEXT structure.

[in] 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

Requirement Value
Target Platform Desktop
Header rxcontx.h (include Mrx.h, Rxcontx.h)
IRQL <= APC_LEVEL

See also

RX_CONTEXT

RxCompleteRequest

RxCompleteRequest_Real

RxCreateRxContext

RxDereference

RxDereferenceAndDeleteRxContext_Real

RxInitializeContext

RxPrepareContextForReuse

RxResumeBlockedOperations_Serially