How to hold system shutdown until my application exits.
I am developing an application and i want to suppress system shutdown while my application is executing.

please provide some sample program. I explored something in platform SDK but didtnt get a clear idea..