Commits the transaction.
HRESULT Commit (
BOOL fRetaining,
DWORD grfTC,
DWORD grfRM )
where
These flags are supported for the grfTC parameter.
Flag | Meaning |
---|---|
XACTTC_ASYNC | When this flag is specified, an asynchronous commit is performed. The call to ITransaction::Commit returns as soon as the two-phase commit protocol is initiated. The application can use the ITransactionOutcomeEvents interface to determine the outcome of the transaction. This flag cannot be specified when the XACTTC_SYNCPHASEONE flag is specified. If neither XACTTC_ASYNC nor XACTTC_SYNCPHASEONE is specified, a synchronous commit is performed. |
XACTTC_SYNCPHASEONE | When this flag is specified, a synchronous commit is performed. The call to ITransaction::Commit returns after phase one of the two-phase commit protocol. This flag cannot be specified when the XACTTC_ASYNC flag is specified. If neither XACTTC_ASYNC nor XACTTC_SYNCPHASEONE is specified, a synchronous commit is performed. |