Results 1 to 2 of 2

Thread: Complicated Logoff

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Posts
    352

    Complicated Logoff

    I am trying to track when the user logs off the computer. I only want to know when they log off(not restarts, not shutdowns, etc). The way I decided to handle it was by keeping a program executing constantly, invisibly, and hidden from the taskmanager. I know I can detect when windows is trying to close down my program by using the query_unload event with the constant vbappwindows, but is there any way at that point to distinguish what type of shutdown procedure is occuring. If not, I know you can subclass your form to check for power down messages. I believe the constant EWX_LOGOFF would allow me to monitor logoffs specifically, but I would rather not subclass it, if it can be avoided. Is there any api call that checks the shutdown state so I can compare it to that constant? If so, i can place that in the query_unload and allow it to handle log offs uniquely. Thank you for any input.

    Joe

  2. #2
    New Member
    Join Date
    Feb 2002
    Location
    Hyderabad
    Posts
    1

    Cool Complicated logoff

    12

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