public enum ElevationState extends java.lang.Enum<ElevationState>
Enum Constant and Description |
---|
ELEVATION_STATE_DEFAULT
The current process is not limited and not elevated on Vista or higher.
|
ELEVATION_STATE_FULL
The current process was elevated and runs with full rights.
|
ELEVATION_STATE_LIMITED
The current process runs with limited rights.
|
ELEVATION_STATE_NOT_APPLICABLE
All processes on a system with a Windows version previous to Vista.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static ElevationState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ElevationState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ElevationState ELEVATION_STATE_NOT_APPLICABLE
public static final ElevationState ELEVATION_STATE_DEFAULT
Util.hasFullAdminRights()
.public static final ElevationState ELEVATION_STATE_LIMITED
public static final ElevationState ELEVATION_STATE_FULL
public static ElevationState[] values()
for (ElevationState c : ElevationState.values()) System.out.println(c);
public static ElevationState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<ElevationState>