IContextState::GetMyTransactionVote method (comsvcs.h)
Retrieves the value of the consistent flag. Retrieving this value before deactivating the object allows the object to confirm its vote.
HRESULT GetMyTransactionVote( [out] TransactionVote *ptxVote );
The consistent flag. For a list of values, see the TransactionVote enumeration. This parameter is set to TxCommit if the consistent flag is true; it is set to TxAbort if the consistent flag is false.
This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following values.
||The method completed successfully.|
||The object is not running in a transaction.|
If the method fails, you may be able to determine that a transaction is not present, based on the HRESULT value. If the method succeeds, it returns a value based on the consistent flag. From this value, you can determine whether the object can be committed or must be aborted. Regardless of the object's state, the object must be participating in a transaction.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|