Click or drag to resize

ProcessContext Class

[AlphaFS] Class to determine the context of the current process.
Inheritance Hierarchy
SystemObject
  Alphaleonis.Win32.SecurityProcessContext

Namespace:  Alphaleonis.Win32.Security
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public static class ProcessContext

The ProcessContext type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberIsAdministrator
[AlphaFS] Determines if the current process is run in the context of an Administrator.
Public propertyStatic memberIsElevatedProcess
[AlphaFS] Determines if UAC is enabled and that the current process is in an elevated state.

If the current User is the default Administrator then the process is assumed to be in an elevated state.

This assumption is made because by default, the default Administrator (disabled by default) gets all access rights without showing an UAC prompt.

Public propertyStatic memberIsUacEnabled
[AlphaFS] Determines if UAC is enabled by reading the "EnableLUA" registry key of the local Computer.
Public propertyStatic memberIsWindowsService
[AlphaFS] Determines if the current process is run in the context of a Windows Service.
Top
See Also