~ubuntu-branches/ubuntu/oneiric/psi/oneiric

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2006-01-20 00:20:36 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060120002036-7nw6yo6totip0ee5
Tags: 0.10-2
* Added upstream changelog (Closes: Bug#327748)
* Mention --no-gpg and --no-gpg-agent in manpage (Closes: Bug#204416)

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();