home bbs files messages ]

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,903 of 10,840   
   Jason S to Dean Earley   
   Re: Detect Log Off or Shut Down process    
   18 Feb 06 19:37:35   
   
   From: jst3712@iprimus.com.au   
      
   "Dean Earley"  wrote in message   
   news:43f5c7fe$0$5002$db0fefd9@news.zen.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   
      
      
   Thanks. I never actually sussed out the QueryUnload event to be honest.   
   Works!  =)   
      
   Jason.   
      
   --- 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