ITransactionReceiverFactory::Create
Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista
The Create method creates an ITransactionReceiver object.
Syntax
HRESULT Create (ITransactionReceiver
**pTxReceiver
);
Parameters
pTxReceiver
[out] A pointer to the ITransactionReceiver object that is created.
Return Values
S_OK
Success.
Example
The following sample code shows how to use the Create method to create a receiver object.
ITransactionReceiverFactory* pTxReceiverFactory = NULL;
hr = pTransactionDispenser->QueryInterface(
IID_ITransactionReceiverFactory,
(void**)&pTxReceiverFactory);
ITransactionReceiver* pTxReceiver = NULL;
hr = pTxReceiverFactory->Create(&pTxReceiver);
Requirements
For an explanation of the requirement values, see Requirements (Component Services).
Platforms: Windows Server 2016, Windows 10, Windows Server 2012 R2, Windows 8.1, Windows Server 2012, Windows 8, Windows Server 2008 R2, Windows 7, Windows Server 2008, Windows Vista
Header: Declared in txdtc.h