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

A handle to the enlistment to commit.

TmVirtualClock [in]

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:

ERROR_ACCESS_DENIED
ERROR_INVALID_HANDLE
ERROR_INSUFFICIENT_RESOURCES
ERROR_TRANSACTION_ALREADY_ABORTED

Requirements

Minimum supported client

Windows Vista with SP1

Minimum supported server

Windows Server 2008

Header

KtmW32.h

Library

KtmW32.lib

DLL

KtmW32.dll

See also

Kernel Transaction Manager Functions
CommitComplete
CreateEnlistment
GetCurrentClockTransactionManager

 

 

Community Additions

ADD
Show:
© 2014 Microsoft