Platform SDK: Transaction Server

ITransactionImport::Import

This method transforms a transaction cookie into a transaction object.

HRESULT Import (
ULONG
cbTransactionCookie,
BYTE *
rgbTransactionCookie,
RIID *
piid,
void **
ppvTransaction);

Parameters

cbTransactionCookie [in]
The size of the transaction cookie.

rgbTransactionCooke [in]
The transaction cookie.

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

ppvTransaction [out]
Pointer to the pointer to the IUnknown interface on the imported transaction object.

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 TM failed to import the transaction.

XACT_E_TMNOTAVAILABLE
Unable to connect to the TM.

XACT_E_CONNECTION_DOWN
Lost connection with the TM.

XACT_E_CONNECTION_REQUEST_DENIED
TM refused a connection request.

XACT_E_NOTRANSACTION
The transaction was not found.