Share via


ITransactionTransmitterFactory::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 ITransactionTransmitter object.

Syntax

  
HRESULT Create (ITransactionTransmitter   
**pTxTransmitter  
);  
  

Parameters

pTxTransmitter
[out] A pointer to the ITransactionTransmitter object that is created.

Return Values

S_OK
Success.

Example

The following sample code shows how to use the Create method to create a transmitter object.

ITransactionTransmitterFactory* pTxTransmitterFactory = NULL;

hr = pTransactionDispenser->QueryInterface(

IID_ITransactionTransmitterFactory,

(void**)&pTxTransmitterFactory);

ITransactionTransmitter* pTxTransmitter = NULL;

hr = pTxTransmitterFactory->Create(&pTxTransmitter);

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

See Also

ITransactionTransmitter