The ZwRollbackTransaction routine initiates a rollback operation for a specified transaction.
__kernel_entry NTSYSCALLAPI NTSTATUS NtRollbackTransaction( HANDLE TransactionHandle, BOOLEAN Wait );
A Boolean value that the caller sets to TRUE for synchronous operation or FALSE for asynchronous operation. If this parameter is set to TRUE, the call does not return until the rollback operation is complete.
ZwRollbackTransaction returns STATUS_SUCCESS if the operation succeeds. Otherwise, this routine might return one of the following values:
||The handle that the TransactionHandle parameter specifies is not a handle to a transaction object.|
||An object handle is invalid.|
||The caller does not have appropriate access to the transaction object.|
||The transaction cannot be rolled back because it has already been committed.|
||The transaction has not been committed but its current state does not permit rollback.|
||Rollback notifications have been queued to resource managers, and the caller specified FALSE for the Wait parameter.|
The routine might return other NTSTATUS values.
For more information about ZwRollbackTransaction, 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.
|Minimum supported client||Available in Windows Vista and later operating system versions.|
|Header||wdm.h (include Wdm.h, Ntifs.h)|
|DDI compliance rules||PowerIrpDDis, HwStorPortProhibitedDDIs|