Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ITransactionImport::Import

This method transforms a transaction cookie into a transaction object.

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

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.

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.

For an explanation of the requirement values, see Requirements.

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

Show:
© 2015 Microsoft