HowTo programmatically detect if UAC is enabled or disabled?

  • Thread starter Thread starter Nick Rivers
  • Start date Start date
N

Nick Rivers

Hi!

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

Thanks
-Nick
 
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)
 
Back
Top