Show / Hide Table of Contents

Class uacInfo

Gets UAC integrity level and other security info of this and other processes.

public sealed class uacInfo : IDisposable
Remarks

An uacInfo variable contains a process access token handle that is used to get security info. Always dispose uacInfo variables to close the handle.


Namespace: Au
Assembly: Au.dll
Inheritance
object
uacInfo

Properties

Name Description
Elevation

Gets the UAC elevation type of the process.

Failed

Returns true if the last called property function failed. Normally it should never fail. Only uacInfo.ofProcess can fail (then it returns null).

IntegrityLevel

Gets the UAC integrity level (IL) of the process.

IsUIAccess

Returns true if the process has UAC uiAccess property. A uiAccess process can access/automate all windows of processes running in the same user session.

UnsafeTokenHandle

The access token handle.

isAdmin

Returns true if this process is running as administrator.

isUacDisabled

Returns true if UAC is disabled (turned off) completely (not just disabled UAC consent screen/dialog).

ofThisProcess

Gets uacInfo variable for this process.

Methods

Name Description
Dispose()
ofProcess(int)

Opens process access token and creates/returns new uacInfo variable that holds it. Then you can use its properties.