Windows 2008 giving a screen telling user the process is stil running and preventing the machine to log-off [modified]
-
Hello all, While trying to abort user logoff and shutdown programatically for windows 2008 , windows 7 and then running a process after it results in a screen with a message that following processes are still running and process abc.exe is preventing system to logoff. How can I disable this screen so that I can handle the process of Logoff and thus execute my processes accordingly. Regards Kushagra
modified on Wednesday, October 7, 2009 8:02 AM
-
Hello all, While trying to abort user logoff and shutdown programatically for windows 2008 , windows 7 and then running a process after it results in a screen with a message that following processes are still running and process abc.exe is preventing system to logoff. How can I disable this screen so that I can handle the process of Logoff and thus execute my processes accordingly. Regards Kushagra
modified on Wednesday, October 7, 2009 8:02 AM
In my knowledge it's not possible to disable this service. It's actually an information window provided by OS to make the user aware of which applications are blocking shutdown. Application Shutdown behavior is Changed since Windows Vista. In Windows XP, applications are allowed to veto WM_QUERYENDSESSION without displaying any UI indicating why they need to cancel shutdown. These “silent shutdown failures” are highly frustrating to users, who often take a minute or two to realize that shutdown has failed because no UI was displayed. This is no longer permitted. Applications that must block shutdown should use the new shutdown reason API. Also applications should no longer rely on always being able to block shutdown. Windows Vista/7 will also not allow console applications or applications that have no visible top-level windows to block shutdown The details are given in The documentation is available in MSDN website.[^] Also check this article - Describing Windows XP and Vista Shutdown in Application context[^]
-Sarath.
My blog - Sharing My Thoughts
Rate the answers and close your posts if it's answered
-
In my knowledge it's not possible to disable this service. It's actually an information window provided by OS to make the user aware of which applications are blocking shutdown. Application Shutdown behavior is Changed since Windows Vista. In Windows XP, applications are allowed to veto WM_QUERYENDSESSION without displaying any UI indicating why they need to cancel shutdown. These “silent shutdown failures” are highly frustrating to users, who often take a minute or two to realize that shutdown has failed because no UI was displayed. This is no longer permitted. Applications that must block shutdown should use the new shutdown reason API. Also applications should no longer rely on always being able to block shutdown. Windows Vista/7 will also not allow console applications or applications that have no visible top-level windows to block shutdown The details are given in The documentation is available in MSDN website.[^] Also check this article - Describing Windows XP and Vista Shutdown in Application context[^]
-Sarath.
My blog - Sharing My Thoughts
Rate the answers and close your posts if it's answered
Thanks Sarath , You really are a life savior :) Cheers, Kushagra