NtRollforwardTransactionManager function

The ZwRollforwardTransactionManager routine initiates recovery operations for all of the in-progress transactions that are assigned to a specified transaction manager.


__kernel_entry NTSYSCALLAPI NTSTATUS NtRollforwardTransactionManager(
  HANDLE         TransactionManagerHandle,



A handle to a transaction manager object that was obtained by a previous call to ZwCreateTransactionManager or ZwOpenTransactionManager. The handle must have TRANSACTIONMANAGER_RECOVER access to the object.


A pointer to a virtual clock value. This parameter is optional and can be NULL. For more information about this parameter, see the following Remarks section.

Return Value

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

Return code Description
The specified handle is not a handle to a transaction manager object.
An object handle is invalid.
The caller does not have appropriate access to the transaction manager object.
The specified transaction manager object does not have a log file, so recovery is not available.
The specified transaction manager object is in an unexpected state.

The routine might return other NTSTATUS values.


The ZwRollforwardTransactionManager routine recovers all logged activity that KTM finds in the transaction manager's log file, up to and including the virtual clock value that the TmVirtualClock parameter supplies.

Your component can traverse the log file incrementally by calling ZwRollforwardTransactionManager repetitively and setting the VirtualClock parameter to a higher value before each call.

If the TmVirtualClock parameter is NULL, calling ZwRollforwardTransactionManager is equivalent to calling ZwRecoverTransactionManager.

For more information about recovery operations, see Handling Recovery Operations.

NtRollforwardTransactionManager and ZwRollforwardTransactionManager are two versions of the same Windows Native System Services routine. The NtRollforwardTransactionManager routine in the Windows kernel is not directly accessible to kernel-mode drivers. However, kernel-mode drivers can access this routine indirectly by calling the ZwRollforwardTransactionManager 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 versions of Windows.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
DDI compliance rules PowerIrpDDis, HwStorPortProhibitedDDIs

See Also


Using Nt and Zw Versions of the Native System Services Routines