Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |
|---|---|
|
The method completed successfully. |
|
Object activation failed. |
|
Object activation failed due to time-out. |
|
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 |