IComInstanceEvents::OnObjectCreate method (comsvcs.h)
Generated when an object is created by a client.
Syntax
HRESULT OnObjectCreate(
[in] COMSVCSEVENTINFO *pInfo,
[in] REFGUID guidActivity,
[in] REFCLSID clsid,
[in] REFGUID tsid,
[in] ULONG64 CtxtID,
[in] ULONG64 ObjectID
);
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 just-in-time (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 |