RxSetMinirdrCancelRoutine - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// rxcontx.h

NTSTATUS RxSetMinirdrCancelRoutine(
  [in, out] IN OUT PRX_CONTEXT RxContext,
  [in]      IN PMRX_CALLDOWN   MRxCancelRoutine
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-rxcontx-rxsetminirdrcancelroutine)

RxSetMinirdrCancelRoutine function

Description

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

Parameters

RxContext [in, out]

A pointer to the RX_CONTEXT structure.

MRxCancelRoutine [in]

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.

See also

RX_CONTEXT

RxCompleteRequest

RxCompleteRequest_Real

RxCreateRxContext

RxDereference

RxDereferenceAndDeleteRxContext_Real

RxInitializeContext

RxPrepareContextForReuse

RxResumeBlockedOperations_Serially