
Toolhelp.dll (Check when DLL or EXE starts or exits)
On Thu, 12 Aug 1999 16:09:31 +0200, "Patrik Cedendahl"
Quote:
>Hi!
>How do i notify a Visual Basic program every time an application or a DLL
>starts or exits?
>Found a control (VBX) that do this but it is for 16-bit VB.
>//Patrik
Patrik,
You can use a system wide hook to do this. Use the SetWindowsHookEx
API function to create either a CBT or a Shell hook, depending on your
requirements. You'll need a regular (non-COM) DLL to store the hook
procedure.
Mattias
________________________________________________
Mattias "BeeZo" Sj?gren
http://home1.2.sbbs.se/mattias.sjogren/sw/