ITransactionExportFactory::Create
This method creates an export object.
HRESULT Create (
ULONG |
cbWhereabouts, |
BYTE * |
rgbWhereabouts, |
ITransactionExport ** |
ppExport); |
Parameters
cbWhereabouts [in]
The size in bytes of rgbWhereabouts.
rgbWhereabouts [in]
Pointer to the whereabouts.
ppExport [out]
Pointer to the pointer to the ITransactionExport interface on the export object. The export object represents the connection between the caller of ITransactionExportFactory::Create and the destination process which provided the whereabouts. The caller uses the export object returned by this method to marshal a transaction object for export to the destination process.
Return Values
S_OK
Success.
E_FAIL
The data in rgbWhereabouts is corrupted.
E_INVALIDARG
The value of either rgbWhereabouts or ppExport is NULL.
E_OUTOFMEMORY
Unable to allocate memory.
XACT_E_TMNOTAVAILABLE
Unable to connect to the transaction manager or the transaction manager is unavailable.
XACT_E_CONNECTION_DOWN
No longer able to communicate with the transaction manager because the connection to the transaction manager failed.
XACT_E_CONNECTION_REQUEST_DENIED
The transaction manager did not accept a connection request.