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.

74 lines
2.6 KiB

  1. // ----------------------------------------------------------------------------
  2. //
  3. // UtilMan.h
  4. //
  5. // Header for Utility Manager
  6. //
  7. // Author: J. Eckhardt, ECO Kommunikation
  8. // (c) 1997-99 Microsoft
  9. //
  10. // History: created oct-98 by JE
  11. // JE nov-15 98: added "ClientControlCode"
  12. // YX jun-01 99: added const for localized name subkey
  13. // ----------------------------------------------------------------------------
  14. #ifndef _UTILMAN_H_
  15. #define _UTILMAN_H_
  16. #include <stdlib.h>
  17. // ------------------------------
  18. #define UTILMAN_STARTCLIENT_ARG _TEXT("/UM")
  19. // ------------------------------
  20. #define UTILMAN_DESKTOP_CHANGED_MESSAGE _TEXT("UtilityManagerDesktopChanged")
  21. // wParam:
  22. #define DESKTOP_ACCESSDENIED 0
  23. #define DESKTOP_DEFAULT 1
  24. #define DESKTOP_SCREENSAVER 2
  25. #define DESKTOP_WINLOGON 3
  26. #define DESKTOP_TESTDISPLAY 4
  27. #define DESKTOP_OTHER 5
  28. // lParam: 0
  29. // --------------------------------------------
  30. // registry
  31. #define UM_HKCU_REGISTRY_KEY _TEXT("Software\\Microsoft\\Utility Manager")
  32. #define UM_REGISTRY_KEY _TEXT("Software\\Microsoft\\Windows NT\\CurrentVersion\\Accessibility\\Utility Manager")
  33. #define MAX_APPLICATION_NAME_LEN 300
  34. // --------------------------------------------
  35. #define UMR_VALUE_DISPLAY _TEXT("Display name") // YX: Reg key to store localized names
  36. #define UMR_VALUE_PATH _TEXT("Application path")
  37. #define MAX_APPLICATION_PATH_LEN _MAX_PATH
  38. // REG_SZ
  39. #define UMR_VALUE_TYPE _TEXT("Application type")
  40. #define APPLICATION_TYPE_APPLICATION 1
  41. #define APPLICATION_TYPE_SERVICE 2
  42. //MAX_APPLICATION_PATH_LEN
  43. // REG_SZ
  44. // optional (default: NULL)
  45. #define UMR_VALUE_WRA _TEXT("WontRespondAction")
  46. //MAX_APPLICATION_PATH_LEN
  47. // REG_SZ
  48. // optional (default: NULL)
  49. #define UMR_VALUE_WRTO _TEXT("WontRespondTimeout")
  50. #define NO_WONTRESPONDTIMEOUT 0
  51. #define MAX_WONTRESPONDTIMEOUT 600
  52. // REG_DWORD
  53. #define UMR_VALUE_MRC _TEXT("MaxRunCount")
  54. #define MAX_APP_RUNCOUNT 255
  55. #define MAX_SERV_RUNCOUNT 1
  56. // 1 to MAX_xxx_RUNCOUNT (1 BYTE)
  57. // REG_BINARY
  58. // optional (default = 1)
  59. // JE nov-15 98
  60. #define UMR_VALUE_CCC _TEXT("ClientControlCode")
  61. // REG_DWORD
  62. // for valid values see "UMS_Ctrl.h"
  63. // --------------------------------------------
  64. #define UMR_VALUE_STARTUM _TEXT("Start with Utility Manager")
  65. #define UMR_VALUE_STARTLOCK _TEXT("Start on locked desktop")
  66. #define UMR_VALUE_SHOWWARNING _TEXT("ShowWarning")
  67. // BOOL
  68. // REG_DWORD
  69. // CONSIDER cleaning up the "Start with Windows" key
  70. #define UMR_VALUE_ATATLOGON _TEXT("Start at Logon")
  71. // BOOL
  72. // REG_DWORD
  73. #endif //_UTILMAN_H_