IVsShell.IsPackageInstalled(Guid, Int32) Method

Definition

Determines whether a VSPackage identified by guidPackage is installed and registered with the system.

public:
 int IsPackageInstalled(Guid % guidPackage, [Runtime::InteropServices::Out] int % pfInstalled);
public int IsPackageInstalled (ref Guid guidPackage, out int pfInstalled);
abstract member IsPackageInstalled : Guid * int -> int
Public Function IsPackageInstalled (ByRef guidPackage As Guid, ByRef pfInstalled As Integer) As Integer

Parameters

guidPackage
Guid

[in] Unique identifier of the VSPackage.

pfInstalled
Int32

[out, retval] true if the VSPackage is installed in the registry.

Returns

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

Remarks

COM Signature

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.

Applies to