source: psi/trunk/src/tools/idle/win32/idleui.h

Last change on this file was 2, checked in by dmik, 19 years ago

Imported original Psi 0.10 sources from Affinix

File size: 943 bytes
Line 
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
6//
7#define DLLIMPORT __declspec(dllimport)
8
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.
12//
13// To use, you must
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();
18//
19// See TestIdleUI.cpp for an example of how to use IdleUI
20//
21DLLIMPORT BOOL IdleUIInit();
22DLLIMPORT void IdleUITerm();
23DLLIMPORT DWORD IdleUIGetLastInputTime();
Note: See TracBrowser for help on using the repository browser.