IVsShell::IsPackageInstalled Method (Guid, Int32)
Visual Studio 2015
Determines whether a VSPackage identified by guidPackage is installed and registered with the system.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int IsPackageInstalled( [InAttribute] Guid% guidPackage, [OutAttribute] int% pfInstalled )
Parameters
- guidPackage
-
Type:
System::Guid
[in] Unique identifier of the VSPackage.
- pfInstalled
-
Type:
System::Int32
[out, retval] true if the VSPackage is installed in the registry.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsShell::IsPackageInstalled(
[in] REFGUID guidPackage,
[out, retval] BOOL *pfInstalled
);
This method can be used to achieve advanced interactions between multiple VSPackages to determine whether they are loaded. It is recommended that you query for services that other VSPackages proffer.
Show: