Link to home
Start Free TrialLog in
Avatar of daniel_c
daniel_c

asked on

Trapping Event Windows Shutdown

How to trap event Windows Shutdown?
If you ever use Norton Anti Virus 5,
you must know, that before Windows
shutdown, it will automatically scan
for Virus in floppy disk.

Okay, need your help again any Delphi experts.

Regards,

Daniel
ASKER CERTIFIED SOLUTION
Avatar of simonet
simonet
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of daniel_c
daniel_c

ASKER

How to differentiate that the object sender which send the message is Windows or other applications?
What I need is just Windows not other EXEs module.
Doesn't make any difference and there's no way to differentiate between them (at least on the current versions on Windows).

So, no matter if the user clicked on Start  -> Shut down, or if any application called the ExitWindows(Ex) API call, the WM_QUERYENDSESSION will be sent to all top-level Windows the same way.


Alex

Thanks Alex!