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.

76 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. // REG_DWORD
  43. #define UMR_VALUE_EONL _TEXT("ErrorOnLaunch")
  44. //MAX_APPLICATION_PATH_LEN
  45. // REG_SZ
  46. // optional (default: NULL)
  47. #define UMR_VALUE_WRA _TEXT("WontRespondAction")
  48. //MAX_APPLICATION_PATH_LEN
  49. // REG_SZ
  50. // optional (default: NULL)
  51. #define UMR_VALUE_WRTO _TEXT("WontRespondTimeout")
  52. #define NO_WONTRESPONDTIMEOUT 0
  53. #define MAX_WONTRESPONDTIMEOUT 600
  54. // REG_DWORD
  55. #define UMR_VALUE_MRC _TEXT("MaxRunCount")
  56. #define MAX_APP_RUNCOUNT 255
  57. #define MAX_SERV_RUNCOUNT 1
  58. // 1 to MAX_xxx_RUNCOUNT (1 BYTE)
  59. // REG_BINARY
  60. // optional (default = 1)
  61. // JE nov-15 98
  62. #define UMR_VALUE_CCC _TEXT("ClientControlCode")
  63. // REG_DWORD
  64. // for valid values see "UMS_Ctrl.h"
  65. // --------------------------------------------
  66. #define UMR_VALUE_STARTUM _TEXT("Start with Utility Manager")
  67. #define UMR_VALUE_STARTLOCK _TEXT("Start on locked desktop")
  68. #define UMR_VALUE_SHOWWARNING _TEXT("ShowWarning")
  69. // BOOL
  70. // REG_DWORD
  71. // CONSIDER cleaning up the "Start with Windows" key
  72. #define UMR_VALUE_ATATLOGON _TEXT("Start at Logon")
  73. // BOOL
  74. // REG_DWORD
  75. #endif //_UTILMAN_H_