Platform SDK: Transaction Server |
ITransactionExport::GetTransactionCookie
This method transforms a transaction object into a transaction cookie.
HRESULT GetTransactionCookie (
IUnknown * |
pITransaction |
ULONG |
cbTransactionCookie, |
BYTE * |
rgbTransactionCookie, |
ULONG * |
pcbUsed); |
Parameters
pITransaction [in]
Pointer to the IUnknown interface on the transaction object to be marshaled. The ITransactionExport::Export must have been called previously.
cbTransactionCookie [in]
The size in bytes of the transaction cookie representing the transaction object.
rgbTransactionCookie [out]
Pointer to the caller allocated buffer that will receive the transaction cookie.
pcbUsed [out]
Pointer to the size in bytes of the address returned in rgbTransactionCookie.
Return Values
S_OK
Success.
E_UNEXPECTED
An unexpected error occurred.
E_NOINTERFACE
pITransaction did not support the ITransaction interface.
E_INVALIDARG
A NULL pointer was specified.