You have to know this before your App does something that requires Administrator privileges. Actually it is quite easy:
using System.Security.Principal;
public bool IsAdmin()
{
WindowsPrincipal principal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
return principal.IsInRole(WindowsBuiltInRole.Administrator);
}
3576a9a6-f164-4737-9955-abe97d950ab9|0|.0