Share via


CoGetPSClsid (Windows Embedded CE 6.0)

1/6/2010

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 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.

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

See Also

Reference

COM Functions