Bewerken

Delen via


TmInitializeTransactionManager function (wdm.h)

The TmInitializeTransactionManager routine initializes a transaction manager object.

Syntax

NTSTATUS TmInitializeTransactionManager(
  [in]           PRKTM            TransactionManager,
  [in, optional] PCUNICODE_STRING LogFileName,
  [in]           PGUID            TmId,
  [in, optional] ULONG            CreateOptions
);

Parameters

[in] TransactionManager

A pointer to the transaction manager object to initialize.

[in, optional] LogFileName

A pointer to a UNICODE_STRING structure that contains the path and file name of a CLFS log file stream associated with the transaction manager object.

[in] TmId

Specifies a pointer to a GUID that identifies the name of the transaction manager object to initialize.

[in, optional] CreateOptions

Optional object creation flags. The following table contains the available flags.

Option flag Meaning
TRANSACTION_MANAGER_VOLATILE The transaction manager object will be volatile. Therefore, it will not use a log file.
TRANSACTION_MANAGER_COMMIT_DEFAULT For internal use only.
TRANSACTION_MANAGER_COMMIT_SYSTEM_VOLUME For internal use only.
TRANSACTION_MANAGER_COMMIT_SYSTEM_HIVES For internal use only.
TRANSACTION_MANAGER_COMMIT_LOWEST For internal use only.
TRANSACTION_MANAGER_CORRUPT_FOR_RECOVERY For internal use only.
TRANSACTION_MANAGER_CORRUPT_FOR_PROGRESS For internal use only.

Return value

The TmInitializeTransactionManager routine returns STATUS_SUCCESS if the operation succeeds.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of Windows.
Target Platform Universal
Header wdm.h