Timed logoff application

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi all, I have recently been approached to build a piece of software which
automatically logs off a user after a set time has elapsed.

The company wants someone to give a user access to a specific program for a
period of one hour and after the hour has passed the user is automatically
logged off the machine. It would be great if there was the ability to add a
short message five or so minutes before the user was logged off.

Rather than reinvent the wheel does anyone know if there is software
available which already does this?

We are running Windows 2000

TIA
Mark
 
Off the top of my pointed head, you could try System.Diagnostic.Process
Start
WaitForExit(setTime-warnTime)
MessageBoxShow
Sleep(warnTime)
Close

Regards,
Jeff
Hi all, I have recently been approached to build a piece of software
which automatically logs off a user after a set time has elapsed.<
 
Hi John,

I don't know of an app that does this.

It isn't clear if you want them to log out of your application after an
hour, or log off of Windows.

It also isn't clear if you intend to modify the application itself to
support this, or if you are looking to provide a utility that can be used
for any Windows session.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Hi all, thanks for your help.

I want the user to be logged off after one hour of using the program. If
nobody knows of a piece of software that already does this then I'll write
my own.

Thanks
Mark
 
Back
Top