IComObjectEvents::OnObjectActivate method (comsvcs.h)

Generated when an object gets an instance of a new JIT-activated object.

Syntax

HRESULT OnObjectActivate(
  [in] COMSVCSEVENTINFO *pInfo,
  [in] ULONG64          CtxtID,
  [in] ULONG64          ObjectID
);

Parameters

[in] pInfo

A pointer to a COMSVCSEVENTINFO structure.

[in] CtxtID

The GUID of the current context.

[in] ObjectID

The JIT-activated object.

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

IComObjectEvents