|
-
February 28th, 2000, 06:27 PM
#1
RegQueryValue
Anyone know how to use RegQueryValue? I've tried several different ways, but each time i get a number back instead of the key's value...any suggestions?
-
February 29th, 2000, 02:30 AM
#2
Re: RegQueryValue
try this sample from msdn
private Sub QueryValue (sKeyName as string, sValueName as string)
Dim lRetVal as Long 'result of the API functions
Dim hKey as Long 'handle of opened key
Dim vValue as Variant 'setting of queried value
lRetVal = RegOpenKeyEx(HKEY_CURRENT_USER, sKeyName, 0, _
KEY_ALL_ACCESS, hKey)
lRetVal = QueryValueEx(hKey, sValueName, vValue)
MsgBox vValue
RegCloseKey (hKey)
End Sub
article number: Q145679
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|