IComObjectPoolEvents2::OnObjPoolDestroyObject method (comsvcs.h)

Generated when an object is permanently removed from the pool.

Syntax

HRESULT OnObjPoolDestroyObject(
  [in] COMSVCSEVENTINFO *pInfo,
  [in] REFGUID          guidObject,
  [in] DWORD            dwObjsCreated,
  [in] ULONG64          oid
);

Parameters

[in] pInfo

A pointer to a COMSVCSEVENTINFO structure.

[in] guidObject

The CLSID for the objects in the pool.

[in] dwObjsCreated

The number of objects in the pool.

[in] oid

The unique pooled object identifier.

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

IComObjectPoolEvents2