PrePrepareEnlistment function (ktmw32.h)

Pre-prepares the transaction associated with this enlistment handle. This function is used by communication resource managers (sometimes called superior transaction managers).

Syntax

BOOL PrePrepareEnlistment(
  [in] HANDLE         EnlistmentHandle,
  [in] PLARGE_INTEGER TmVirtualClock
);

Parameters

[in] EnlistmentHandle

A handle to the enlistment for which the prepare operation has completed.

[in] TmVirtualClock

A pointer to the latest virtual clock value received for this transaction.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero (0). To get extended error information, call the GetLastError function.

The following list identifies the possible error codes:

Requirements

Requirement Value
Minimum supported client Windows Vista with SP1
Minimum supported server Windows Server 2008
Target Platform Windows
Header ktmw32.h
Library KtmW32.lib
DLL KtmW32.dll

See also

GetCurrentClockTransactionManager

Kernel Transaction Manager Functions

PrepareEnlistment

ReadOnlyEnlistment

SinglePhaseReject