This is a simple example project that shows how to set a system and task hook using SetWindowsHookEx(). See the comments in HOOKDLL.PAS for detailed notes. The example has been compiled and tested with both Delphi 1 and Delphi 2, but only on Windows 95. Take that info for what it's worth. This code is provided free of charge, and is not guaranteed to do anything at all. You may use it any way you see fit, however, if you amass a large fortune from its usage, please offer me a cushy job so I can do this sort of stuff all day long and get paid for it. Best of Luck, Brad Stowers bstowers@pobox.com http://www.pobox.com/~bstowers/delphi/