Source code of Windows XP (NT5)
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.

98 lines
3.2 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*******************************************************************************
  3. *
  4. * defines.h
  5. *
  6. * WinStation Configuration #defines needed for C++ and C compilations.
  7. *
  8. * copyright notice: Copyright 1995, Citrix Systems Inc.
  9. *
  10. * $Author: butchd $ Butch Davis
  11. *
  12. * $Log: M:\NT\PRIVATE\UTILS\CITRIX\WINUTILS\WINCFG\VCS\DEFINES.H $
  13. *
  14. * Rev 1.5 27 Jun 1997 15:59:54 butchd
  15. * Registry changes for Wds/Tds/Pds/Cds
  16. *
  17. * Rev 1.4 24 Sep 1996 16:21:28 butchd
  18. * update
  19. *
  20. * Rev 1.3 20 Sep 1996 20:36:58 butchd
  21. * update
  22. *
  23. * Rev 1.2 12 Sep 1996 16:16:02 butchd
  24. * update
  25. *
  26. *******************************************************************************/
  27. /*
  28. * Define the global batch flag for all to see and Redefine the
  29. * ErrorMessage and StandardErrorMessage functions to skip if
  30. * in batch mode.
  31. */
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. extern USHORT g_Batch;
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #define WINAPPSTUFF WinUtilsAppName, WinUtilsAppWindow, WinUtilsAppInstance
  40. #define ERROR_MESSAGE(x) { if ( !g_Batch ) ErrorMessage x ; }
  41. #define STANDARD_ERROR_MESSAGE(x) { if ( !g_Batch ) StandardErrorMessage x ; }
  42. /*
  43. * Default, min, max WinStation configuration settings
  44. */
  45. #define CONNECTION_TIME_DIGIT_MAX 6 // 5 digits + NULL
  46. #define CONNECTION_TIME_DEFAULT 120 // 120 minutes
  47. #define CONNECTION_TIME_MIN 1 // 1 minute
  48. #define CONNECTION_TIME_MAX 71582 // 71582 minutes (max msec for ULONG)
  49. #define DISCONNECTION_TIME_DIGIT_MAX 6 // 5 digits + NULL
  50. #define DISCONNECTION_TIME_DEFAULT 10 // 10 minutes
  51. #define DISCONNECTION_TIME_MIN 1 // 1 minute
  52. #define DISCONNECTION_TIME_MAX 71582 // 71582 minutes (max msec for ULONG)
  53. #define IDLE_TIME_DIGIT_MAX 6 // 5 digits + NULL
  54. #define IDLE_TIME_DEFAULT 30 // 30 minutes
  55. #define IDLE_TIME_MIN 1 // 1 minute
  56. #define IDLE_TIME_MAX 71582 // 71582 minutes (max msec for ULONG)
  57. #define MODEM_RESET_TIME_DIGIT_MAX 5 // 4 digits + NULL
  58. #define MODEM_RESET_TIME_DEFAULT 15 // 15 minutes
  59. #define MODEM_RESET_TIME_MIN 5 // 5 minutes
  60. #define MODEM_RESET_TIME_MAX 9999 // 9999 minutes
  61. /*
  62. * Multi-instance WinStation defines
  63. */
  64. #define INSTANCE_COUNT_DIGIT_MAX 6 // maximum # instances = 999999
  65. #define INSTANCE_COUNT_MIN 1
  66. #define INSTANCE_COUNT_MAX 999999
  67. #define INSTANCE_COUNT_UNLIMITED ((ULONG)-1)
  68. /*
  69. * Timer storage resolution.
  70. */
  71. #define TIME_RESOLUTION 60000 // stored as msec-seen as minutes
  72. /*
  73. * Keyboard state defines.
  74. */
  75. #define KBDSHIFT 0x01
  76. #define KBDCTRL 0x02
  77. #define KBDALT 0x04
  78. /*
  79. * Window messages private to WinCfg.
  80. */
  81. #define WM_ADDWINSTATION (WM_USER + 0)
  82. #define WM_LISTINITERROR (WM_USER + 1)
  83. #define WM_EDITSETFIELDSERROR (WM_USER + 2)
  84. #define WM_ASYNCTESTERROR (WM_USER + 3)
  85. #define WM_ASYNCTESTABORT (WM_USER + 4)
  86. #define WM_ASYNCTESTSTATUSREADY (WM_USER + 5)
  87. #define WM_ASYNCTESTINPUTREADY (WM_USER + 6)
  88. #define WM_ASYNCTESTWRITECHAR (WM_USER + 7)