Skip to content

Latest commit

 

History

History
104 lines (85 loc) · 3.31 KB

nf-comsvcs-icontextstate-getmytransactionvote.md

File metadata and controls

104 lines (85 loc) · 3.31 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:comsvcs.IContextState.GetMyTransactionVote
IContextState::GetMyTransactionVote (comsvcs.h)
Retrieves the value of the consistent flag.
GetMyTransactionVote
GetMyTransactionVote method [COM+]
GetMyTransactionVote method [COM+]
IContextState interface
IContextState interface [COM+]
GetMyTransactionVote method
IContextState.GetMyTransactionVote
IContextState::GetMyTransactionVote
_cos_IContextState_GetMyTransactionVote
comsvcs/IContextState::GetMyTransactionVote
cos.icontextstate_getmytransactionvote
cos\icontextstate_getmytransactionvote.htm
cos
72384c53-ce4a-413e-8ff6-33925c8cd0df
12/05/2018
GetMyTransactionVote, GetMyTransactionVote method [COM+], GetMyTransactionVote method [COM+],IContextState interface, IContextState interface [COM+],GetMyTransactionVote method, IContextState.GetMyTransactionVote, IContextState::GetMyTransactionVote, _cos_IContextState_GetMyTransactionVote, comsvcs/IContextState::GetMyTransactionVote, cos.icontextstate_getmytransactionvote
comsvcs.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Windows
19H1
IContextState::GetMyTransactionVote
comsvcs/IContextState::GetMyTransactionVote
c++
APIRef
kbSyntax
COM
ComSvcs.h
IContextState.GetMyTransactionVote

IContextState::GetMyTransactionVote

-description

Retrieves the value of the consistent flag. Retrieving this value before deactivating the object allows the object to confirm its vote.

-parameters

-param ptxVote [out]

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.

-returns

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following values.

Return code Description
S_OK
The method completed successfully.
CONTEXT_E_NOTRANSACTION
The object is not running in a transaction.

-remarks

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.

-see-also

Consistent and Done Flags

IContextState