469,599 Members | 2,617 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,599 developers. It's quick & easy.

[service] Detecting login / logout / inactive account

Dear list,

In the corporation, we want to know who is using which computer, and do
some phone routing based upon this information.
When a user log's uses it's account to login, the phone on the desk
should also ring on the same desk. When the user leave's / sleeping, we
dont want the phone to ring, so we want to detect this also.

By using a service i can keep a program running, without irritating the
users with icon's / message's at startup,.. etc so i want to use a service.
My problem is, how i can catch the login / inactivity / logout. Maybe
there are some hooks which i could use? or should i look at the
processlist every so much time, and determine the activity based upon this?
Apr 7 '06 #1
2 5359
Eduard,

I don't think that a service is the way to go here. I think for this,
you want to write a replacement for the Graphical Identification and
Authentication DLL (GINA.dll). It will allow you to determine when someone
logs in, as well as when the machine is locked/hibernated, etc, etc.

For more information, check out the following document at MS:

http://www.microsoft.com/technet/pro...ty/msgina.mspx

Hope this helps.
"Eduard Witteveen" <ne**@nerNOSPAMgens.org> wrote in message
news:44***********************@news.euronet.nl...
Dear list,

In the corporation, we want to know who is using which computer, and do
some phone routing based upon this information.
When a user log's uses it's account to login, the phone on the desk should
also ring on the same desk. When the user leave's / sleeping, we dont want
the phone to ring, so we want to detect this also.

By using a service i can keep a program running, without irritating the
users with icon's / message's at startup,.. etc so i want to use a
service.
My problem is, how i can catch the login / inactivity / logout. Maybe
there are some hooks which i could use? or should i look at the
processlist every so much time, and determine the activity based upon
this?

Apr 7 '06 #2
Auditing Logon/Logout events is one possible option, you just have to
read/parse the Security log to find the successful logon/logoff messages in
your service.
Another option is to install an ManagementEventWatcher (using
System.Management) to capture the Logon/Logoff WMI Win32_LogonSession
events.
Willy.

"Eduard Witteveen" <ne**@nerNOSPAMgens.org> wrote in message
news:44***********************@news.euronet.nl...
| Dear list,
|
| In the corporation, we want to know who is using which computer, and do
| some phone routing based upon this information.
| When a user log's uses it's account to login, the phone on the desk
| should also ring on the same desk. When the user leave's / sleeping, we
| dont want the phone to ring, so we want to detect this also.
|
| By using a service i can keep a program running, without irritating the
| users with icon's / message's at startup,.. etc so i want to use a
service.
| My problem is, how i can catch the login / inactivity / logout. Maybe
| there are some hooks which i could use? or should i look at the
| processlist every so much time, and determine the activity based upon
this?
Apr 7 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by leslie_tighe | last post: by
4 posts views Thread by leslie_tighe | last post: by
3 posts views Thread by Jennifer.Berube | last post: by
10 posts views Thread by DavidPr | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.