IVsObjectManager::RegisterLibMgr Method (Guid, IVsLibraryMgr^, UInt32)

 

Registers a library with the environment's object manager.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int RegisterLibMgr(
	[InAttribute] Guid% rguidLibMgr,
	IVsLibraryMgr^ pLibMgr,
	[OutAttribute] unsigned int% pdwCookie
)

Parameters

rguidLibMgr
Type: System::Guid

[in] GUID of a library manager.

pLibMgr
Type: Microsoft.VisualStudio.Shell.Interop::IVsLibraryMgr^

[in] Pointer to a library manager.

pdwCookie
Type: System::UInt32

[out] Abstract handle identifying the newly registered library manager.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsObjectManager::RegisterLibMgr(
   [in] REFGUID rguidLibMgr,
   [in] IVsLibraryMgr* pLibMgr,
   [out] VSCOOKIE* pdwCookie
);

Register your package's library manager during SetSite.

Return to top
Show: