Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
789 B

  1. //
  2. // idletimr.h
  3. //
  4. // This file contains an API used to monitor idle clients.
  5. //
  6. // Copyright (C) 2001 Microsoft Corporation
  7. //
  8. // Author: a-devjen (Devin Jenson)
  9. //
  10. #ifndef INC_IDLETIMR_H
  11. #define INC_IDLETIMR_H
  12. #include <windows.h>
  13. #include <crtdbg.h>
  14. #include <sctypes.h>
  15. #include <tclient2.h>
  16. // Initial wait time before reporting idle
  17. #define WAIT_TIME 30000 // 30 seconds
  18. // Wait time each step after an idle is found before reporting again
  19. #define WAIT_TIME_STEP 10000 // 10 seconds
  20. BOOL T2CreateTimerThread(PFNPRINTMESSAGE PrintMessage,
  21. PFNIDLEMESSAGE IdleCallback);
  22. BOOL T2DestroyTimerThread(void);
  23. void T2StartTimer(HANDLE Connection, LPCWSTR Label);
  24. void T2StopTimer(HANDLE Connection);
  25. #endif // INC_IDLETIMR_H