Hooks aren't always your best option for tracking user idle time. Not only are they often difficult to write, but they also must be loaded into every desktop process and they can trigger some anti-spyware software. Tom Archer offers a more efficient technique.
Articles Written by Tom Archer - MSFT
Tom Archer illustrates how to use the .NET OLE DB classes to read text files.
Tom Archer illustrates how to locate files matching a specified extension by using a .NET component and various .NET classes.
Learn how to easily measure the height and width needed to display text values using .NET classes.
Tom Archer explains how to use the Microsoft Text Driver and the .NET ODBC Classes to read formatted text data.
Tom Archer illustrates how to parse comma-delimited text—when the data contains quotes, commas, and blanks—and return the data in a managed array.