is 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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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\Systemkey’sEnableLUAvalue. 1 == enabled.There’s also a decent example at freevbcode.com.