How to detect whether Vista UAC is enabled?

后端 未结 8 1279
渐次进展
渐次进展 2021-01-31 04:48

I need my application to behave differently depending on whether Vista UAC is enabled or not. How can my application detect the state of UAC on the user\'s computer?

8条回答
  •  时光说笑
    2021-01-31 05:19

    Check for the registry value at HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

    The EnableLUA value determines if UAC is active.

提交回复
热议问题