# ElevationState

Import: `import com.install4j.api.windows.ElevationState;`

```java
public final enum ElevationState
```

Enumeration class for the different elevation states the current process can be in.

## Constants

### ELEVATION_STATE_NOT_APPLICABLE

All processes on a system with a Windows version previous to Vista.

### 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`](../Util.md#hasfulladminrights).

### ELEVATION_STATE_LIMITED

The current process runs with limited rights. UAC is turned on.

### ELEVATION_STATE_FULL

The current process was elevated and runs with full rights. UAC is turned on.

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`values()`](#values) | `ElevationState[]` |  |
| [`valueOf(String)`](#valueof-string) | `ElevationState` |  |
| [`toString()`](#tostring) | `String` |  |

### values()

```java
public static ElevationState[] values()
```

### valueOf(String)

```java
public static ElevationState valueOf(String name)
```

### toString()

```java
public String toString()
```

