IDispenserManager::GetContext

A resource dispenser (or any caller with a reference to IDispenserManager) can call this method to determine the current context.

HRESULT IDispenserManager::GetContext (
INSTID *
pInstId,
TRANSID *
pTransId);

Parameters

pInstId [out]
An internal unique identifier of the current object, or 0 if no current object. This may not be interpreted as an (IUnknown *) of the current object.

pTransId [out]
The transaction that the current object is running in, or 0 if none. This may be cast to (ITransaction *).

Return Values

S_OK
Success.

E_FAIL
Failure.