CommitEnlistment function (ktmw32.h)

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


BOOL CommitEnlistment(
  [in] HANDLE         EnlistmentHandle,
  [in] PLARGE_INTEGER TmVirtualClock


[in] EnlistmentHandle

A handle to the enlistment to commit.

[in] 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:


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




Kernel Transaction Manager Functions