PDA

Click to See Complete Forum and Search --> : How to watch registry changes?


crum66
Jan 25th, 2000, 10:38 PM
I would like to watch a specific registry key, and when it changes I would like to set another registry key.

Does anyone have any suggestions of how to do this? I want to make sure I do it in the most efficient way.

By the way, I am on Windows 95, so the use of RegNotifyChangeKeyValue will not work, as it is only supported in Win98 and WinNT. Are there any other ways?

THANKS!

Dave

[This message has been edited by crum66 (edited 01-26-2000).]

CyberCarsten
Jan 26th, 2000, 03:50 AM
You can use the GetSetting
Place a label on a form, and type the following code:


Private Sub Form_Load()
Label1.Caption = GetSetting(Appname:="SomeApp" , Section:="SomeSection", Key:="SomeKey")



------------------
Yours sincierly
CyberCarsten http://home18.inet.tele.dk/cyber/
carsten.h.thomsen@mail.tele.dk


[This message has been edited by CyberCarsten (edited 01-26-2000).]

crum66
Jan 26th, 2000, 04:35 AM
Well, I need a little more than this. You see, I need to have this process constantly running (preferably in the background with no user interface). And when it finds that a particular registry value has changed, I need to act on that and change another registry value. And when it happens again, do the same thing (and so on).

Any ideas?