This method is used to marshal a transaction object for export.
HRESULT Export (
IUnknown * |
pITransaction, |
ULONG * |
pcbTransactionCookie); |
Parameters
punkTransaction [in]
Pointer to the IUnknown interface on the transaction object to be exported.
pcbTransactionCookie [out]
Pointer to the size in bytes of the transaction cookie.
Return Values
S_OK
Success.
E_UNEXPECTED
An unexpected error occurred.
E_INVALIDARG
The value of either punkTransaction or pcbTransactionCookie is NULL.
E_OUTOFMEMORY
Unable to allocate memory.
XACT_E_ALREADYINPROGRESS
An export is already in progress on this export object. Only one export may be done at a time.
E_NOINTERFACE
punkTransaction did not support the ITransaction interface.
XACT_E_CONNECTION_DOWN
No longer able to communicate with the transaction manager because the connection to the transaction manager failed. This export object is now invalid.
XACT_E_NOTRANSACTION
Unable to retrieve information for the transaction because it was already completed.
XACT_E_LOGFULL
The MS DTC log is full.
E_FAIL
Failed to connect to the transaction coordinator.