1
////////////////////////////////////////////////////////////////
2
// 2000 Microsoft Systems Journal.
3
// If this program works, it was written by Paul DiLascia.
4
// If not, I don't know who wrote it.
5
// This program compiles with Visual C++ 6.0 on Windows 98
7
#define DLLIMPORT __declspec(dllimport)
9
// IdleUI is a DLL that lets you tell when the user interface has been idle
10
// for a specified amount of time. The DLL works by installing windows keyboard
11
// and mouse hooks. The DLL records the tick count whenever input is received.
14
// - call IdleUIInit when your app starts up
15
// - call IdleUITerm when your app terminates
16
// - call IdleUIGetLastInputTime to get the time, and compare this with
17
// the current GetTickCount();
19
// See TestIdleUI.cpp for an example of how to use IdleUI
21
DLLIMPORT BOOL IdleUIInit();
22
DLLIMPORT void IdleUITerm();
23
DLLIMPORT DWORD IdleUIGetLastInputTime();