IVsObjectManager2::RegisterLibrary Method (IVsLibrary2^, UInt32)

 

Registers a symbol library with the Visual Studio object manager.

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

int RegisterLibrary(
	IVsLibrary2^ pLib,
	[OutAttribute] unsigned int% pdwCookie
)

Parameters

pLib
Type: Microsoft.VisualStudio.Shell.Interop::IVsLibrary2^

[in] The IVsLibrary2 that represents a library registered with the object manager.

pdwCookie
Type: System::UInt32

[out] The Cookie that identifies the registered library.

Return Value

Type: System::Int32

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

From vsshell80.idl:

HRESULT IVsObjectManager2::RegisterLibrary(

[in] IVsLibrary2 * pLib,

[out] VSCOOKIE* pdwCookie

);

Return to top
Show: