IVsShell::IsPackageLoaded Method (Guid, IVsPackage^)

 

Determines whether a VSPackage identified by the package GUID (guidPackage) is loaded in the environment.

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

int IsPackageLoaded(
	[InAttribute] Guid% guidPackage,
	[OutAttribute] IVsPackage^% ppPackage
)

Parameters

guidPackage
Type: System::Guid

[in] GUID identifying a specific VSPackage.

ppPackage
Type: Microsoft.VisualStudio.Shell.Interop::IVsPackage^

[out] Pointer to a pointer to a package object.

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 IVsShell::IsPackageLoaded(

   [in] REFGUID guidPackage,

   [out, retval] IVsPackage **ppPackage

);

Return to top
Show: