The ZwPrepareComplete routine notifies KTM that the calling resource manager has finished preparing a transaction's data.
__kernel_entry NTSYSCALLAPI NTSTATUS NtPrepareComplete( HANDLE EnlistmentHandle, PLARGE_INTEGER TmVirtualClock );
A pointer to a virtual clock value. This parameter is optional and can be NULL.
ZwPrepareComplete 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 transaction or its enlistment is not in the correct state.|
||The caller does not have appropriate access to the enlistment object.|
The routine might return other NTSTATUS values.
A resource manager must call ZwPrepareComplete after it has finished servicing a TRANSACTION_NOTIFY_PREPARE notification.
After a resource manager has called ZwPrepareComplete, it cannot roll back the transaction.
For more information about ZwPrepareComplete, see Handling Commit Operations.
NtPrepareComplete and ZwPrepareComplete 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|