~ubuntu-branches/ubuntu/utopic/psi/utopic

« back to all changes in this revision

Viewing changes to src/libpsi/tools/idle/win32/idleui.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2010-02-19 09:37:12 UTC
  • mfrom: (6.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100219093712-e225xvm1wjcf1cgi
Tags: 0.14-2
* comment out only function which uses va_list to work around build
  problems on armel
* Set Standards-Version to 3.8.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
// 
 
21
DLLIMPORT BOOL IdleUIInit();
 
22
DLLIMPORT void IdleUITerm();
 
23
DLLIMPORT DWORD IdleUIGetLastInputTime();