Thanks Michael. Following your advice eventually led to refined solution of
importing the following:
[DllImport("shell32.dll", EntryPoint = "#680", CharSet =
CharSet.Unicode)]
public static extern bool IsUserAnAdmin();
(I can't remember where I got this, but it was on a page that discussed the
GetTokenInformation() function)
So I tested on my computer with UAC turned on, and it returned False, then
without it on and it returned true.
Thanks for pointing me in the right direction!
Rob
"Michael Nemtsev" wrote:
Quote:
Hello RobKinney1,
>
You need to request info from GetTokenInformation() WinAPI function
>
See the sample of elevating UAC there
http://www.codeproject.com/useritems/VistaElevator.asp
>
RThis could be REAL simple, but I cannot find any info on it anywhere
Rafter 2 hours of searching.
R>
RHow can I programmatically determine if the UAC is turned in Vista
Rusing C#?
>
>
---
WBR, Michael Nemtsev [C# MVP]. Blog:
http://spaces.live.com/laflour
team blog:
http://devkids.blogspot.com/
>
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
>
>
>