IDispenserManager::GetContext method (comsvcs.h)

Determines the current context.

Syntax

HRESULT GetContext(
  [out] INSTID  *__MIDL__IDispenserManager0002,
  [out] TRANSID *__MIDL__IDispenserManager0003
);

Parameters

[out] __MIDL__IDispenserManager0002

An internal unique identifier of the current object, or 0 if no current object. This may not be interpreted as an IUnknown pointer to the current object.

[out] __MIDL__IDispenserManager0003

The transaction that the current object is running in, or 0 if none. This value may be cast to ITransaction *.

Return value

If the method succeeds, the return value is S_OK. Otherwise, it is E_FAIL.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

IDispenserManager