• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 649
  • Last Modified:

How do I read a HKEY_CURRENT_USER registry value in VB6?

How do I read a HKEY_CURRENT_USER registry value in VB6?
0
pat_cunningham
Asked:
pat_cunningham
1 Solution
 
David LeeCommented:
Hi, pat_cunningham.

Something like this will do it.
Dim objShell 
Set objShell = CreateObject("WScript.Shell")
varValue = objShell.RegRead("HKCU\SomeKey")

Open in new window

0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now