Hi Rohit, > Has anyone had this working. I have tried it on and off for months > and I am not convinced that it works. I have used it in a VC++ application, but I found that WM_ENDSESSION was much more reliable. Regards, Bevan