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.

67 lines
1.4 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation
  3. Module Name:
  4. Timeout.h
  5. Abstract:
  6. This file contains all the definitions for this utility.
  7. Author:
  8. Wipro Technologies
  9. Revision History:
  10. 14-Jun-2001 Created it.
  11. --*/
  12. //
  13. // macro definitions
  14. // constants
  15. #define MAX_NUM_RECS 2
  16. #define LOW_DATE_TIME_ROLL_OVER 10000000
  17. #define MIN_TIME_VAL -1
  18. #define MAX_TIME_VAL 100000
  19. #define MAX_COMMANDLINE_OPTIONS 3
  20. // Option indices
  21. #define OI_USAGE 0
  22. #define OI_TIME_OUT 1
  23. #define OI_NB_OUT 2
  24. // string constants
  25. #define ERROR_TAG GetResString( IDS_ERROR_TAG )
  26. //#define WAIT_TIME L"%*lu"
  27. #define NULL_U_STRING L"\0"
  28. #define SLEEP_FACTOR 1000
  29. #define ONE_BACK_SPACE L"\b"
  30. #define STRING_FORMAT2 L"%s%*lu"
  31. #define BASE_TEN 10
  32. // Exit values
  33. #define CLEAN_EXIT 0
  34. #define ERROR_EXIT 1
  35. // Function definitions
  36. VOID DisplayUsage( VOID );
  37. BOOL GetTimeInSecs( OUT time_t *ptTime );
  38. BOOL ProcessOptions( IN DWORD argc,
  39. IN LPCWSTR argv[],
  40. OUT BOOL *pbUsage,
  41. OUT DWORD *plTimeActuals,
  42. OUT LPWSTR wszTimeout,
  43. OUT BOOL *pbNBActuals );
  44. BOOL WINAPI HandlerRoutine( IN DWORD dwCtrlType );