ExecutePrivilege.cs 1.0 KB

12345678910111213141516171819202122232425262728
  1. namespace PaintDotNet.SystemLayer
  2. {
  3. public enum ExecutePrivilege
  4. {
  5. /// <summary>
  6. /// The process is started with default permissions: either the same as the invoker,
  7. /// or those required by the executable's manifest.
  8. /// </summary>
  9. AsInvokerOrAsManifest,
  10. /// <summary>
  11. /// The process is required to run with administrator privilege. If the user does not
  12. /// have administrator privilege, nor has the ability to obtain it, then the operation
  13. /// will fail.
  14. /// </summary>
  15. RequireAdmin,
  16. /// <summary>
  17. /// The process is required to run with normal privilege. On some systems this may
  18. /// not be possible, and as such this will have the same effect as AsInvokerOrAsManifest.
  19. /// </summary>
  20. /// <remarks>
  21. /// This flag only has an effect in Windows Vista from a process that already has
  22. /// administrator privilege.
  23. /// </remarks>
  24. RequireNonAdminIfPossible
  25. }
  26. }