Monitor Changes to the Registry
Version Compatibility: Visual Basic 6, Visual Basic 5
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.
Instructions: Copy the declarations and code below and paste directly into your VB project.