advertisement

Find Code  Advanced Search   

Free Newsletters:   
browse free vb code
Submit Code
ASP,  HTML, and XML
Database
Dates  and Math
Files  and Directories
Forms  and Controls
Lists,  Collections, and Arrays
Miscellaneous
Multimedia/Games
Office/VBA
Network/Internet
Registry
Screen/Graphics
String  Manipulation
System/API
Windows  2000/XP
VB.NET/ASP.NET



advertisement
Monitor Changes to the Registry

Author: Arkadiy Olovyannikov (Featured Developer)
Category: Registry
Type: Snippets
Difficulty: Intermediate

Version Compatibility:  Visual Basic 5   Visual Basic 6  

More information: This function allows you to monitor changes in Registry keys and subkeys. It may be useful to protect your Registry (especially "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" or "RunOnce") against "non-friendly" applications.

Note that your application will freeze while monitoring, unless and until a registry change within the monitored keys occurs. Thus, you would probably use this code in a non-UI based application.

This code has been viewed 110794 times.

Instructions: Copy the declarations and code below and paste directly into your VB project.


Declarations:

Code:

No Text Boxes

Sponsored Links