CoGetPSClsid function

Returns the CLSID of the DLL that implements the proxy and stub for the specified interface.

Syntax

HRESULT CoGetPSClsid(
  REFIID riid,
  CLSID  *pClsid
);

Parameters

riid

The interface whose proxy/stub CLSID is to be returned.

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
S_OK
The proxy/stub CLSID was successfully returned.
E_INVALIDARG
One of the parameters is invalid.
E_OUTOFMEMORY
There is insufficient memory to complete this operation.

Remarks

The CoGetPSClsid function looks at the HKEY_CLASSES_ROOT<b>Interfaces<i>{string form of riid}<b>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

   
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

See Also

CoRegisterPSClsid