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
Tried Erwin's code but it didn't compile.
Got it to work like this:
[DllImport("shell32.dll")] public static extern bool IsUserAnAdmin();