IVsShell3.IsRunningElevated(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);