IVsObjectManager.RegisterLibMgr(Guid, IVsLibraryMgr, UInt32) 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 a library with the environment's object manager.
public:
int RegisterLibMgr(Guid % rguidLibMgr, Microsoft::VisualStudio::Shell::Interop::IVsLibraryMgr ^ pLibMgr, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
public int RegisterLibMgr (ref Guid rguidLibMgr, Microsoft.VisualStudio.Shell.Interop.IVsLibraryMgr pLibMgr, out uint pdwCookie);
abstract member RegisterLibMgr : Guid * Microsoft.VisualStudio.Shell.Interop.IVsLibraryMgr * uint32 -> int
Public Function RegisterLibMgr (ByRef rguidLibMgr As Guid, pLibMgr As IVsLibraryMgr, ByRef pdwCookie As UInteger) As Integer
Parameters
- rguidLibMgr
- Guid
[in] GUID of a library manager.
- pLibMgr
- IVsLibraryMgr
[in] Pointer to a library manager.
- pdwCookie
- UInt32
[out] Abstract handle identifying the newly registered library manager.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsObjectManager::RegisterLibMgr(
[in] REFGUID rguidLibMgr,
[in] IVsLibraryMgr* pLibMgr,
[out] VSCOOKIE* pdwCookie
);
Register your package's library manager during SetSite.