IComMethod2Events::OnMethodReturn2 method (comsvcs.h)

Generated when an object's method returns.

Syntax

HRESULT OnMethodReturn2(
  [in] COMSVCSEVENTINFO *pInfo,
  [in] ULONG64          oid,
  [in] REFCLSID         guidCid,
  [in] REFIID           guidRid,
  [in] DWORD            dwThread,
  [in] ULONG            iMeth,
  [in] HRESULT          hresult
);

Parameters

[in] pInfo

A pointer to a COMSVCSEVENTINFO structure.

[in] oid

The just-in-time (JIT) activated object.

[in] guidCid

The CLSID for the object being called.

[in] guidRid

The identifier of the method being called.

[in] dwThread

The identifier of the thread executing the call.

[in] iMeth

The v-table index of the method.

[in] hresult

The result of the method call.

Return value

The user verifies the return values from this method.

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

IComMethod2Events