Enum Class ElevationState

java.lang.Object
java.lang.Enum<ElevationState>
com.install4j.api.windows.ElevationState
All Implemented Interfaces:
Serializable, Comparable<ElevationState>, Constable

public enum ElevationState extends Enum<ElevationState>
Enumeration class for the different elevation states the current process can be in.
  • Enum Constant Details

    • ELEVATION_STATE_NOT_APPLICABLE

      public static final ElevationState ELEVATION_STATE_NOT_APPLICABLE
      All processes on a system with a Windows version previous to Vista.
    • ELEVATION_STATE_DEFAULT

      public static final ElevationState ELEVATION_STATE_DEFAULT
      The current process is not limited and not elevated on Vista or higher. This can be a process of a non-admin user, or of an admin user when UAC is turned off. You can differentiate between those two with Util.hasFullAdminRights().
    • ELEVATION_STATE_LIMITED

      public static final ElevationState ELEVATION_STATE_LIMITED
      The current process runs with limited rights. UAC is turned on.
    • ELEVATION_STATE_FULL

      public static final ElevationState ELEVATION_STATE_FULL
      The current process was elevated and runs with full rights. UAC is turned on.
  • Method Details

    • values

      public static ElevationState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ElevationState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ElevationState>