Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This function returns the CLSID of the DLL that implements the proxy and stub for the specified interface.
Syntax
WINOLEAPI CoGetPSClsid( REFIID riid, CLSID* pclsid ); |
Parameters
- riid
-
[in] The interface whose proxy/stub CLSID is to be returned.
- pclsid
-
[out] Where to store the proxy/stub CLSID for the interface specified by riid.
Return Value
- 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 CoGetPSClsidfunction 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 CoRegisterPSClsidwithin the current process.
To determine whether the platform supports this function, see Determining Supported COM APIs.
Requirements
Header | objbase.h |
Library | ole32.lib |
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |