次の方法で共有


IVsShell3.IsRunningElevated(Boolean) Method

Definition

Check to see if the application is running as an admin.

public:
 int IsRunningElevated([Runtime::InteropServices::Out] bool % pElevated);
int IsRunningElevated([Runtime::InteropServices::Out] bool & pElevated);
public int IsRunningElevated (out bool pElevated);
abstract member IsRunningElevated : bool -> int
Public Function IsRunningElevated (ByRef pElevated As Boolean) As Integer

Parameters

pElevated
Boolean

True if application is running as an admin.

Returns

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

Remarks

COM Signature

From vsshell90.idl:

HRESULT IsRunningElevated([out] VARIANT_BOOL *pElevated);  

Applies to