Freigeben über


ITransactionImport::Import

 

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

This method transforms a transaction cookie into a transaction object.

Syntax

  
HRESULT Import(   ULONG cbTransactionCookie,  byte * rgbTransactionCookie,  IID * piid,  void ** ppvTransaction);  

Parameters

cbTransactionCookie
[in] The size of the transaction cookie.

rgbTransactionCookie
[in] The transaction cookie.

piid
[in] The interface ID desired on the resulting transaction object.

ppvTransaction
[out] Reference to the interface on the imported transaction object, requested by the piid parameter.

Return Values

S_OK
Success.

E_UNEXPECTED
An unexpected error occurred.

E_INVALIDARG
One or more parameters were invalid.

E_OUTOFMEMORY
Unable to allocate memory.

E_FAIL
The transaction manager failed to import the transaction.

XACT_E_TMNOTAVAILABLE
Unable to connect to the transaction manager.

XACT_E_CONNECTION_DOWN
Lost connection with the transaction manager.

XACT_E_CONNECTION_DENIED
The transaction manager refused to accept a connection.

XACT_E_NOTRANSACTION
The transaction was not found.

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 txcoord.h

See Also

ITransactionExport