IServicePool::GetObject method (comsvcs.h)

Retrieves an object from the object pool.

The object returned is a COM object that can run under arbitrary threading models and contexts.

Syntax

HRESULT GetObject(
  [in]  REFIID riid,
  [out] void   **ppv
);

Parameters

[in] riid

A reference to the identifier of the object requested.

[out] ppv

The requested object.

Return value

This method can return the following values.

Return code Description
S_OK
The method completed successfully.
CO_E_ACTIVATION_FAILED
Object activation failed.
CO_E_ACTIVATIONFAILED_TIMEOUT
Object activation failed due to time-out.
CO_E_NOTINITIALIZED
The object pool was not initialized.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional with SP4, Windows XP with SP2 [desktop apps only]
Minimum supported server Windows Server 2003 with SP1 [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

IServicePool