IComInstance2Events::OnObjectCreate2 method (comsvcs.h)

Generated when a client creates an object.

Syntax

HRESULT OnObjectCreate2(
  [in] COMSVCSEVENTINFO *pInfo,
  [in] REFGUID          guidActivity,
  [in] REFCLSID         clsid,
  [in] REFGUID          tsid,
  [in] ULONG64          CtxtID,
  [in] ULONG64          ObjectID,
  [in] REFGUID          guidPartition
);

Parameters

[in] pInfo

A pointer to a COMSVCSEVENTINFO structure.

[in] guidActivity

The identifier of the activity in which the object is created.

[in] clsid

The CLSID of the object being created.

[in] tsid

The transaction stream identifier, which is unique for correlation to objects.

[in] CtxtID

The context identifier for this object.

[in] ObjectID

The initial JIT-activated object.

[in] guidPartition

The partition identifier for which this instance is created.

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

IComInstance2Events