CoGetPSClsid function (combaseapi.h)
Returns the CLSID of the DLL that implements the proxy and stub for the specified interface.
Syntax
HRESULT CoGetPSClsid(
[in] REFIID riid,
[out] CLSID *pClsid
);
Parameters
[in] riid
The interface whose proxy/stub CLSID is to be returned.
[out] pClsid
Specifies where to store the proxy/stub CLSID for the interface specified by riid.
Return value
This function can return the following values.
Return code | Description |
---|---|
|
The proxy/stub CLSID was successfully returned. |
|
One of the parameters is invalid. |
|
There is insufficient memory to complete this operation. |
Remarks
The CoGetPSClsid function looks at the HKEY_CLASSES_ROOT\Interfaces\{string form of riid}\ProxyStubClsid32 key in the registry to determine the CLSID of the DLL to load in order to create the proxy and stub for the interface specified by riid. This function also returns the CLSID for any interface IID registered by CoRegisterPSClsid within the current process.
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 | combaseapi.h (include Objbase.h) |
Library | Ole32.lib |
DLL | Ole32.dll |