Skip to content

Latest commit

 

History

History
149 lines (110 loc) · 4.72 KB

nf-wdm-ntrollbackenlistment.md

File metadata and controls

149 lines (110 loc) · 4.72 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:wdm.NtRollbackEnlistment
NtRollbackEnlistment function (wdm.h)
The ZwRollbackEnlistment routine rolls back the transaction that is associated with a specified enlistment.
kernel\zwrollbackenlistment.htm
kernel
04/30/2018
NtRollbackEnlistment function
NtRollbackEnlistment, ZwRollbackEnlistment, ZwRollbackEnlistment routine [Kernel-Mode Driver Architecture], kernel.zwrollbackenlistment, ktm_ref_6e57f040-d43e-4986-a756-e35e1abc8670.xml, wdm/NtRollbackEnlistment, wdm/ZwRollbackEnlistment
wdm.h
Wdm.h, Ntifs.h
Universal
Available in Windows Vista and later operating system versions.
PowerIrpDDis, HwStorPortProhibitedDDIs
NtosKrnl.lib
NtosKrnl.exe
PASSIVE_LEVEL
Windows
NtRollbackEnlistment
wdm/NtRollbackEnlistment
APIRef
kbSyntax
DllExport
NtosKrnl.exe
NtRollbackEnlistment

NtRollbackEnlistment function

-description

The ZwRollbackEnlistment routine rolls back the transaction that is associated with a specified enlistment.

-parameters

-param EnlistmentHandle [in]

A handle to an enlistment object that was obtained by a previous call to ZwCreateEnlistment or ZwOpenEnlistment. The handle must have ENLISTMENT_SUBORDINATE_RIGHTS access to the object.

-param TmVirtualClock [in, optional]

A pointer to a virtual clock value. This parameter is optional and can be NULL.

-returns

ZwRollbackEnlistment returns STATUS_SUCCESS if the operation succeeds. Otherwise, this routine might return one of the following values:

Return code Description
STATUS_OBJECT_TYPE_MISMATCH
The specified handle is not a handle to an enlistment object.
STATUS_INVALID_HANDLE
The object handle is invalid.
STATUS_TRANSACTION_REQUEST_NOT_VALID
The enlistment cannot be rolled back.
STATUS_ACCESS_DENIED
The caller does not have appropriate access to the enlistment object.
 

The routine might return other NTSTATUS values.

-remarks

A resource manager can call ZwRollbackEnlistment to roll back a transaction at any time before it calls ZwPrepareComplete.

For more information about ZwRollbackEnlistment, see Handling Rollback Operations.

NtRollbackEnlistment and ZwRollbackEnlistment are two versions of the same Windows Native System Services routine.

For calls from kernel-mode drivers, the NtXxx and ZwXxx versions of a Windows Native System Services routine can behave differently in the way that they handle and interpret input parameters. For more information about the relationship between the NtXxx and ZwXxx versions of a routine, see Using Nt and Zw Versions of the Native System Services Routines.

-see-also

TmRollbackEnlistment

Using Nt and Zw Versions of the Native System Services Routines

ZwCreateEnlistment

ZwOpenEnlistment

ZwPrepareComplete