Bewerken

Delen via


TmRecoverResourceManager function (wdm.h)

The TmRecoverResourceManager routine tries to recover the transaction that is associated with each enlistment of a specified resource manager object.

Syntax

NTSTATUS TmRecoverResourceManager(
  [in] PKRESOURCEMANAGER ResourceManager
);

Parameters

[in] ResourceManager

A pointer to a resource manager object. To obtain this pointer, your component must call ObReferenceObjectByHandle and supply the object handle that a previous call to ZwCreateResourceManager or ZwOpenResourceManager provided.

Return value

TmRecoverResourceManager returns STATUS_SUCCESS if the operation succeeds. Otherwise, this routine might return the following value:

Return code Description
STATUS_TRANSACTIONMANAGER_NOT_ONLINE
The transaction manager that is associated with the specified resource manager is not online.
 

The routine might return other NTSTATUS values.

Remarks

The TmRecoverResourceManager routine is a pointer-based version of the ZwRecoverResourceManager routine.

For information about when to use KTM's TmXxx routines instead of ZwXxx routines, see Using TmXxx Routines.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later operating system versions.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL

See also

ObReferenceObjectByHandle

ZwCreateResourceManager

ZwOpenResourceManager

ZwRecoverResourceManager