What I know is from here:

https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

If setting the "Required execution level" to "Administrator" is also not sufficient you can write a custom dll in C/C++ or .NET. There you have access to all APIs from Microsoft ....

What I sometimes use:

public static bool checkElevatedPrivilege() {

WindowsIdentity winIdentity = WindowsIdentity.GetCurrent();
WindowsPrincipal winPrincipal = new WindowsPrincipal(winIdentity);

return winPrincipal.IsInRole(WindowsBuiltInRole.Administrator);

} /* end method */


regards

Markus