by Ark (13 Submissions)
Category: Windows System Services
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating:
(12 Votes)
Setting System wide Shell hook. Sample application search for all shell event and write them into log. When new window created, activated, destroyed, language locale change, task manager activated - you'll receive notification.
Assumes
All docs say that it's impossible to set system wide hook from VB without standard dll. Here it is! Using undocumented shell32 function calling by ordinal (thanks to James Holderness http://www.geocities.com/SiliconValley/4942/contents.html for his great job for finding this and many other functions).Sample application search for all shell event and write them into log. When new window created, activated, destroyed, language locale change, task manager activated - you'll receive notification.