CommitTransactionAsync function

Requests that the specified transaction be committed.

Syntax


BOOL WINAPI CommitTransactionAsync(
  _In_  HANDLE TransactionHandle
);

Parameters

TransactionHandle [in]

A handle to the transaction to be committed.

This handle must have been opened with the TRANSACTION_COMMIT access right. For more information, see KTM Security and Access Rights.

Return value

If the function succeeds, the return value is nonzero. Success means that the function completed synchronously, and the calling application does not need to wait for pending results.

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_IO_PENDING
ERROR_TRANSACTION_ALREADY_COMMITTED
ERROR_TRANSACTION_ALREADY_ABORTED

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Ktmw32.h

Library

Ktmw32.lib

DLL

Ktmw32.dll

See also

CreateTransaction
Kernel Transaction Manager Functions
OpenTransaction
RollbackTransaction

 

 

Community Additions

ADD
Show:
© 2014 Microsoft