Guest Bill Posted November 9, 2007 Posted November 9, 2007 I have an older MFC application that runs as a service with a UI. When we get the QueryEndSession event we always return a true. Then when we get the EndSession event we Unsubclass all of the non-MFC windows per the Kowledge Base article 164166. This has worked for us all the way up through the Server 2003 Std Ed and Ent Ed, but has seemed to stop working on Server 2003 R2 release. On the R2 release we are recieviing a true with the WM_EndSession message on the first logoff , but if you logon again and then attempt a second logoff we are getting a false and the logoff is canceled. -- Bill
Recommended Posts