|
-
Aug 6th, 2002, 12:24 PM
#1
Thread Starter
Lively Member
Reading all values in a registry subkey
Hi All,
Can someone please show me how to read all values in a subkey at one time.
I'm creating a Startup Monitor program.
It uses a timer that fires every 100 milliseconds
When the program starts up I need it to read in the current values of a subkey into a textbox.
Then the timer fires and continuously reads the values in the same subkey into a second text box
Then the remaining code compares the two textboxes contents.
If there's any difference a message will appear informing the user that something has been changed.
example:
I need to read in all of the values in the:
HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run
subkey
All the reg code I have now can do everything except what I'm needing.
Here's what I have so far.
Private Sub Check1_Click()
Text1.Text = getstring(HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", _
"Site Surfer")
Timer1.Enabled = True
End Sub
This only reads in the value data from the single value Site Surfer
So is there a way to read in all values in a subkey into a textbox at one time?
Thanks,
techsent
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
|