Windows Vista Forums
Vista Forums Home Join Vista Forums Tech Publications Windows 7 Forum Vista Tutorials Webcasts Tags

Welcome to Vista Forums we are your forum for Windows Vista help and discussion. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista security

HowTo programmatically detect if UAC is enabled or disabled?

Update your Vista Drivers
Reply
 
Thread Tools Display Modes
Old 02-12-2007   #1 (permalink)
Nick Rivers
Guest


 

HowTo programmatically detect if UAC is enabled or disabled?

Hi!

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

Thanks
-Nick



My System SpecsSystem Spec
Old 02-12-2007   #2 (permalink)
Jesper
Guest


 

RE: HowTo programmatically detect if UAC is enabled or disabled?

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)

"Nick Rivers" wrote:

> Hi!
>
> I need to know programmatically exactly if UAC is enabled or disabled.
>
> Thanks
> -Nick
>
>
>

My System SpecsSystem Spec
Reply
Update your Vista Drivers

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
SLi enabled, or disabled. Joshes Gaming 2 07-06-2008 03:45 PM
HowTo programmatically define roles and users ... herbert .NET General 1 03-25-2008 10:36 PM
UAC slowing down startup both enabled and disabled... Gnopps Vista performance & maintenance 0 07-10-2007 07:56 AM
Detect 3GB switch programmatically scorpneo@gmail.com Vista General 0 05-23-2007 11:29 AM
Disabled User Account Control and disabled Administrator account. Craig L Davies Vista account administration 2 03-11-2007 03:38 PM


Complimentary Industry Resources

Vista Forums has joined forces with TradePub.com to offer you a new, exciting, and entirely free professional resource. Visit http://vistax64.tradepub.com today to browse our selection of complimentary Industry magazines, white papers, webinars, podcasts, and more across 34 industry sectors. No credit cards, coupons, or promo codes required. Try it today!




Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51