Export (0) Print
Expand All
COM
Expand Minimize

CoGetPSClsid function

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

riid [in]

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

pClsid [out]

Specifies where to store the proxy/stub CLSID for the interface specified by riid.

Return value

This function can return the following values.

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

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

CoRegisterPSClsid

 

 

Community Additions

ADD
Show:
© 2014 Microsoft