Assembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public interface IElevationManager |
| Visual Basic (Declaration) |
|---|
Public Interface IElevationManager |
Remarks
This service interacts with the OS to determine whether the current user has administrative rights and to prompt for elevation when required. For example, on Windows Vista this may result in the appearance of a UAC dialog.
Windows does not support privilege elevation in process. Consequently the requested tasks may be performed in a separate process when required. Parameters and results are serialized and communicated with the foreign process via .Net serialization.
Since acquiring an elevation context may require prompting the user, they should be used sparingly and in a reasonably coarse-grained manner (without compromising security by running everything in an elevation context).
