CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 1999
    Location
    Austria
    Posts
    17

    programstart when user is logging off

    i have a programm, that i want to start when a user is logging off or shut's down windows nt.
    i know i can place a programm in the registry to run, when windows starts, but is there also
    a key to run my program when i logoff/shutdown?


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: programstart when user is logging off

    I once had to do something like that and I used the following solution:
    - I started a (invisible) program when windows started
    - The program would wait for a WM_QUERYENDSESSION message
    - upon receipt of that message it would do whatever it had to do (save session settings...).


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured