Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HowTo programmatically detect if UAC is enabled or disabled?

1 view
Skip to first unread message

Nick Rivers

unread,
Feb 12, 2007, 8:54:28 AM2/12/07
to
Hi!

I need to know programmatically exactly if UAC is enabled or disabled.

Thanks
-Nick


Jesper

unread,
Feb 12, 2007, 11:48:01 AM2/12/07
to
I am unable to find an API to do this. However, checking the value of this
key works:
Hive: HKLM
Key: SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Value: EnableLUA
Type: REG_DWORD
Data: 1 (Default, enabled)
0 (Disabled)
0 new messages