How can I know whether shutdown or reboot/logoff

Andy Yan
09-12-2000, 06:14 AM
I need to write a program which will be called when system is going to shut down . I use "QueryUnload" event handler ,but it run also when system reboot or Log off .
Is there maybe some way to intercept(hook) some kind of message that signals a shutdown or log-off of Windows??

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum