Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,902 of 10,840    |
|    Dean Earley to Jason S    |
|    Re: Detect Log Off or Shut Down process     |
|    17 Feb 06 12:55:23    |
      From: dean.earley@icode.co.uk              Jason S wrote:       > Hi there,       >       > I created a simple VB app that runs in the background that I now need to       > detect when Windows (XP with SP2) is just about to Shut Down OR the user is       > Logging Off. Is this possible?       > I require my app to either pause the shutdown/log-off process for a few       > seconds whilst it does something important (it's a security thing). As soon       > as its finished, Windows should resume logging off the user and/or shutting       > down.              Just do it in the shutdown code of your app?       Windows will wait patiently (up to a point) for your app to finish.       The QueryUnload event will tell you why its shutting down.              --       Dean Earley (dean.earley@icode.co.uk)       i-Catcher Development Team              iCode Systems              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca