开发者

check if UAC is enabled with VB6

开发者 https://www.devze.com 2023-02-02 06:13 出处:网络
i开发者_如何学Cs it possible to check if UAC is enabled with VB6 on win7 and vista? i know it has to do with reading a value in the registry, i have see .net versions, but i need a vb6 sample code

i开发者_如何学Cs it possible to check if UAC is enabled with VB6 on win7 and vista? i know it has to do with reading a value in the registry, i have see .net versions, but i need a vb6 sample code

thanks


DevX.com has an example of how to read the registry using VB6.

You'll have to add this constant: Const HKEY_LOCAL_MACHINE = &H80000002...it's missing from the sample.

You'll want to read the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System key's EnableLUA value. 1 == enabled.

There's also a decent example at freevbcode.com.

0

精彩评论

暂无评论...
验证码 换一张
取 消