CommitEnlistment function

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

Syntax

BOOL CommitEnlistment(
  IN HANDLE         EnlistmentHandle,
  IN PLARGE_INTEGER TmVirtualClock
);

Parameters

EnlistmentHandle

A handle to the enlistment to commit.

TmVirtualClock

A pointer to the latest virtual clock value received for this enlistment. If you specify NULL, the virtual clock value is not changed.

To change the virtual clock value, this value must be greater than the current value returned by a subordinate TM.

Return value

If the function succeeds, the return value is nonzero.

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

The following list identifies the possible error codes:

Requirements

   
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

CommitComplete

CreateEnlistment

GetCurrentClockTransactionManager

Kernel Transaction Manager Functions