I am trying to prevent users from closing my program unless they were logging off or shutting down by trapping the windows WM_QUERYENDSESSION message - unfortunatly I have a few users that are reasonably intelligent & have worked out that if you load up word, type something into the editor & then try to log off, windows sends the QueryEndSession message to all windows so my app closes, but word asks if the user wants to save before it lets windows log off, the user then just clicks cancel in word & the computer stays logged on and working with my app shutdown... Anyone know of a way around this?
Thanks
Thanks