473,378 Members | 1,134 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Timed logoff application

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
Jul 21 '05 #1
4 1476
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.<

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #2
use a timer.


John wrote:
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

Jul 21 '05 #3
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.
--
"John" <do**@spam.me> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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

Jul 21 '05 #4
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
"Nick Malik [Microsoft]" <ni*******@hotmail.nospam.com> wrote in message
news:zb********************@comcast.com...
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.
--
"John" <do**@spam.me> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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


Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Jonathan Heath | last post by:
Hi all, I have created an ASP script that enters data into an Access Database. My problem is that I'd like this script to run when the computer is shutdown or the user logs off. I think...
0
by: Allan Bredahl | last post by:
Hi All I am trying to construct an application that is able to cancel a machine shutdown, reboot or logoff. And after performing some stuff to perform the original shutdown order :...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
8
by: Jm | last post by:
Hi All I have an app that when running if a user selects logoff or shutdown from the start menu, it will close itself but not logoff windows or shutdown. From what i have found so far its most...
4
by: John | last post by:
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...
2
by: spncc | last post by:
i'm using VS 2005 to make the window form authen application. there is a logon status to make use of logoff procedure when the user click on it. however if the user didn't click at logoff control,...
6
by: =?Utf-8?B?Zmh1bnRlcg==?= | last post by:
Hi I have a small .net Windows app that I need to run before the user logs off the machine. This is a Windows App where a dialog is displayed to the user and he/she needs to answer before the...
3
by: =?Utf-8?B?Zmh1bnRlcg==?= | last post by:
I have a Windows Service that should pop a windows form right before logoff, for the user to enter some information. I got things working fairly well except that the user does not get to see the...
1
by: Clemente | last post by:
Hi, We have a VB.Net application that is sleeping until it receives a logoff/shutdown event. We want the application running on Vista and XP. When the application receives those events it has...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.