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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top