I want to detect the system shutdown event from a server EXE. Can anyone tell me if this is possible.

Thanks.