Export (0) Print
Expand All

ZwRecoverTransactionManager routine

The ZwRecoverTransactionManager routine reconstructs the state of the transaction manager object (including all transactions, enlistments, and resource managers) from the recovery information that is in the log stream.

Syntax


NTSTATUS ZwRecoverTransactionManager(
  _In_  HANDLE TransactionManagerHandle
);

Parameters

TransactionManagerHandle [in]

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.

Return value

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

Return codeDescription
STATUS_OBJECT_TYPE_MISMATCH

The specified handle is not a handle to a transaction manager object.

STATUS_INVALID_HANDLE

An object handle is invalid.

STATUS_ACCESS_DENIED

The caller does not have appropriate access to the transaction manager object.

STATUS_TM_VOLATILE

The transaction manager object is volatile and, therefore, its transactions cannot be recovered.

STATUS_UNSUCCESSFUL

The transaction manager object is not in a state that allows recovery.

 

The routine might return other NTSTATUS values.

Remarks

The ZwRecoverTransactionManager routine tries to reconstruct the state of the transaction manager object, including all transactions, enlistments, and resource managers, from the recovery information that is in the object's log stream, beginning at the last restart area that KTM created and ending at the stream's end.

To recover up to a specific virtual time, use the ZwRollforwardTransactionManager routine instead of ZwRecoverTransactionManager.

Your TPS component must call ZwRecoverTransactionManager after it has called ZwCreateTransactionManager or ZwOpenTransactionManager.

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

Requirements

Version

Available in Windows Vista and later operating system versions.

Header

Wdm.h (include Wdm.h or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

PASSIVE_LEVEL

DDI compliance rules

PowerIrpDDis, HwStorPortProhibitedDDIs

See also

TmRecoverTransactionManager
ZwCreateTransactionManager
ZwOpenTransactionManager
ZwRollforwardTransactionManager

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft