The ZwCommitEnlistment routine initiates the commit operation for a specified enlistment's transaction.
__kernel_entry NTSYSCALLAPI NTSTATUS NtCommitEnlistment( HANDLE EnlistmentHandle, PLARGE_INTEGER TmVirtualClock );
A handle to an enlistment object that was obtained by a previous call to ZwCreateEnlistment or ZwOpenEnlistment. The object must represent a superior enlistment and the handle must have ENLISTMENT_SUPERIOR_RIGHTS access to the object.
A pointer to a virtual clock value. This parameter is optional and can be NULL.
ZwCommitEnlistment returns STATUS_SUCCESS if the operation succeeds. Otherwise, this routine might return one of the following values:
||The specified handle is not a handle to an enlistment object.|
||The object handle is invalid.|
||The caller does not have appropriate access to the enlistment object.|
||The caller is not a superior transaction manager for the enlistment.|
||The caller did not register to receive TRANSACTION_NOTIFY_COMMIT_COMPLETE notifications.|
||The enlistment's transaction is not in a state that allows it to be committed.|
||The commit operation for this transaction has already been started.|
||The transaction cannot be committed because it has been rolled back.|
The routine might return other NTSTATUS values.
Only superior transaction managers can call ZwCommitEnlistment.
Callers of ZwCommitEnlistment must register to receive TRANSACTION_NOTIFY_COMMIT_COMPLETE notifications.
The ZwCommitEnlistment routine causes KTM to send TRANSACTION_NOTIFY_COMMIT notifications to all resource managers that have enlisted in the transaction.
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|