.net – Detecting user presence


What I would like to do is detect if a user is actively using a computer running Windows (2000 or later). Preferably, I would like to do this without resorting to using screensavers.

Background: We have a customer service department that sits in a hunt group and can be "Available" or not. If they are "Available" calls will be routed to their phone rather than sit in the queue. While the phone is ringing at an extension, the inbound caller hears the "ringing" sound rather than hold music. Unfortunately, we also have reps that forget to take themselves out of "Available" when they go to lunch or leave for the day.

The end result would likely be written using .NET

Any thoughts?

Best Solution

The API GetLastInputInfo() should be used for this.

Related Question