Login timeout

  • Thread starter Thread starter Sueffel
  • Start date Start date
S

Sueffel

I have been tasked with yet another goofy thing. I need to make, I'm going
to assume it's a system service, that when a user logs in and walks away, it
will log them out. I'm thinking, using a global hook, if the mouse/keyboard
hasn't been touched in 10 minutes, run whatever is needed for forced logoff,
and log this into the security audit log. Anyone got any ideaas where I
should start looking?
Thanks
Sueffel
 
I don't really know a lot about this subject, but maybe it's possible to
link this to the screensaver (which is than set to start after 10 minutes?).

Pieter
 
* "Sueffel said:
I have been tasked with yet another goofy thing. I need to make, I'm going
to assume it's a system service, that when a user logs in and walks away, it
will log them out. I'm thinking, using a global hook, if the mouse/keyboard
hasn't been touched in 10 minutes, run whatever is needed for forced logoff,
and log this into the security audit log. Anyone got any ideaas where I
should start looking?

C++ hook:

<http://www.codeproject.com/dll/trackuseridle.asp>
 
Herfried K. Wagner said:

Thanks for the tip Herfried. I've sent an email to the maker though, I keep
getting the error that no entry point can be found, so I'm thinking that
maybe something is going goofy because I usually get that when I try to
register a non COM component, but I've never gotten that on a DLL that
exports functions! I'm still searching for a way to do the actual logout
portion of the program. I'm thinking WMI, but not sure. One of my servers
went belly up, so that's taking my time for the next day or two.

Thanks again,
Sueffel
 
Herfried K. Wagner said:

Thank you again Herfried, after I redid the definition file and learned how
to export a function from a C DLL, it works like a wet dream! I'm also
using the ExitWindowsEx API to do the logoff action. The only oddity I ran
into is running as a service, it has to have "Interact with Desktop" rights
to do anything other than spin it's wheels. It's nice, someone wlkas away,
I don't have to worry bout security problems no more, plus it's funny to see
them scramble for the mouse every couple of minutes! Sorry, been readingg
to much BOFH <www.theregister.co.uk> lately.
Anyhew, got another Q to post, found a small quark...

Thanks again,
Sueffel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top