ILocalRegistry4.RegisterInterface(Guid) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers an interface for marshaling by using a locally registered proxy.
public:
int RegisterInterface(Guid % riid);
public int RegisterInterface (ref Guid riid);
abstract member RegisterInterface : Guid -> int
Public Function RegisterInterface (ByRef riid As Guid) As Integer
Parameters
- riid
- Guid
ID of the interface to register.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
If riid is GUID_NULL, then all interfaces under HKEY_LOCAL_MACHINE\<RegRoot>\Interface that have a ProxyStubClsid32 entry will be registered.
Note
This method can affect performance if there are many interfaces with many different proxy DLLs because all those DLLs will be loaded.
If riid is IID_IUnknown, then only those interfaces that have an auto-register value (that is, AutoRegister set to non-zero) will be registered.
This method is safe to call from any thread.
There is no corresponding "unregister" method.
COM Signature
From vsshell90.idl:
HRESULT RegisterClassObject(
[in] REFIID riid
);