Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Windows 2008 giving a screen telling user the process is stil running and preventing the machine to log-off [modified]

Windows 2008 giving a screen telling user the process is stil running and preventing the machine to log-off [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kushagra Tiwari
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • K Kushagra Tiwari

      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

      S Offline
      S Offline
      Sarath C
      wrote on last edited by
      #2

      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

      K 1 Reply Last reply
      0
      • S Sarath C

        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

        K Offline
        K Offline
        Kushagra Tiwari
        wrote on last edited by
        #3

        Thanks Sarath , You really are a life savior :) Cheers, Kushagra

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups