IComResourceEvents::OnResourceDestroy method (comsvcs.h)

Generated when a resource is destroyed.

Syntax

HRESULT OnResourceDestroy(
  [in] COMSVCSEVENTINFO *pInfo,
  [in] ULONG64          ObjectID,
  [in] HRESULT          hr,
  [in] LPCOLESTR        pszType,
  [in] ULONG64          resId
);

Parameters

[in] pInfo

A pointer to a COMSVCSEVENTINFO structure.

[in] ObjectID

The just-in-time activated object.

[in] hr

The result from resource dispensers destroy call.

[in] pszType

A description of the resource.

[in] resId

The unique identifier of the resource.

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

IComResourceEvents