ILocalRegistry4::RegisterInterface Method (Guid)
Visual Studio 2015
Registers an interface for marshaling by using a locally registered proxy.
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
Parameters
- riid
-
Type:
System::Guid
ID of the interface to register.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
From vsshell90.idl:
HRESULT RegisterClassObject(
[in] REFIID riid
);
Show:
