Visual Basic - Detect Registry Changes - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: Visual Basic - Detect Registry Changes (/showthread.php?tid=54277) Visual Basic - Detect Registry Changes by DJeX on 12-27-2005 at 04:34 AM
I'm looking for a way to detect registry changes to the startup portions of the registry. I'm not really sure on how to do it. I need to to detect the change then ask the user if he/she wants to keep this change or no. And I would also like it to show the old key and the new key so the user can make a better decision on what to do. RE: Visual Basic - Detect Registry Changes by CookieRevised on 12-27-2005 at 06:27 AM
http://msdn.microsoft.com/library/default.asp?url.../base/registry.asp
--------------------------------- Also remember that there are many many places where stuff can be set which will automatically start with Windows. Everybody knows the obvious two: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run HKCU\Software\Microsoft\Windows\CurrentVersion\Run But there are extremely many more registry keys which will automatically run when Windows starts. For the most complete list of all of them, see the program AutoRuns from SysInternals. --------------------------------- In case you want to write such a program because you want something like that on your computer: there are many (free) programs available on the net which do already what you want. One example (which I use myself) is StartupMonitor. RE: Visual Basic - Detect Registry Changes by DJeX on 12-27-2005 at 06:46 PM How would I use this in Visual Basic? RE: Visual Basic - Detect Registry Changes by CookieRevised on 12-28-2005 at 06:35 AM
The pages on MSDN should explain all. In a nutshell: RE: Visual Basic - Detect Registry Changes by Mike on 12-28-2005 at 07:10 AM
Check this page for information about the RegNotifyChangeKeyValue api: http://www.mentalis.org/apilist/RegNotifyChangeKeyValue.shtml RE: RE: Visual Basic - Detect Registry Changes by CookieRevised on 12-28-2005 at 07:18 AM
quote:That shows only 1 (very small and limited) aspect of the use of the API (and doesn't explain one bit about all the ins and outs of it). As you can see in that source, it wouldn't do much. In fact your program will not be able to do anything unless that root key (or a subkey) has changed. It doesn't detect multiple individuals keys, it doesn't say what key, etc.. etc... Heck, with that source you wouldn't be able to detect anything decent let alone the startup entries as asked. What he wants is closer (if not almost the same) as what is posted almost at the end of that thread in that result-link I posted in my previous post. quote:nope... why would I get mad though APIList is not what I call a source where you find stuff which always will work though...I've found many inaccuracies, incomplete stuff (this API description is an example of how limited they are with their info) and bugs in examples there, not to mention that site hasn't been updated in aaaaaages. |