WindowsGrandAccess

Ecng.Interop

Provides methods to modify access rights for the Windows window station and desktop.

Métodos

GrantAccessToWindowStationAndDesktop
public static IDisposable GrantAccessToWindowStationAndDesktop(string username)
result = WindowsGrandAccess.GrantAccessToWindowStationAndDesktop(username)

Grants full access rights to the current process window station and thread desktop for the specified user.

username
The user account to which access rights are to be granted.

Retorna: An IDisposable token that, when disposed, restores the original access rights.