Is there a canonical way to test to see if the process has administrative privileges on a machine?
I\'m going to be starting a long running process, and much later
What about:
using System.Runtime.InteropServices; internal static class Useful { [DllImport("shell32.dll", EntryPoint = "IsUserAnAdmin")] public static extern bool IsUserAnAdministrator(); }