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.

62 lines
1.9 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: policy.hxx
  7. //
  8. // Contents: #defines and prototypes for policy implementation
  9. //
  10. // Classes: none.
  11. //
  12. // Function: RegReadPolicyKey()
  13. //
  14. // History: 04/23/98 CameronE Created
  15. //
  16. //-----------------------------------------------------------------------------
  17. #ifndef __POLICY_HXX__
  18. #define __POLICY_HXX__
  19. #include <mbstring.h> // for _mbs* funcs
  20. //
  21. // Registry Keys for Policy issues
  22. //
  23. // These are under both HKEY_CURRENT_USER & HKEY_LOCAL_MACHINE
  24. // and all are values under "BASE".
  25. //
  26. #define TS_KEYPOLICY_BASE TEXT("SOFTWARE\\Policies\\Microsoft\\Windows\\Task Scheduler5.0")
  27. #define TS_KEYPOLICY_DISABLE_ADVANCED TEXT("Disable Advanced")
  28. #define TS_KEYPOLICY_DENY_CREATE_TASK TEXT("Task Creation")
  29. #define TS_KEYPOLICY_DENY_BROWSE TEXT("Allow Browse")
  30. #define TS_KEYPOLICY_DENY_DELETE TEXT("Task Deletion")
  31. #define TS_KEYPOLICY_DENY_DRAGDROP TEXT("DragAndDrop")
  32. #define TS_KEYPOLICY_DENY_PROPERTIES TEXT("Property Pages")
  33. #define TS_KEYPOLICY_DENY_EXECUTION TEXT("Execution")
  34. //+---------------------------------------------------------------------------
  35. //
  36. // Function: RegReadPolicyKey
  37. //
  38. // Synopsis: Determine whether a specified policy value is in the registry
  39. // and is on (exists, value > 0x0). If value is on,
  40. // user is not presented with certain options in the UI.
  41. //
  42. // Arguments: LPCTSTR -- value name, appended to the base key
  43. //
  44. // Returns: BOOL - true for value > 0 (policy active)
  45. //
  46. // Notes: None.
  47. //
  48. // History: 4/14/98 CameronE - created
  49. //
  50. //----------------------------------------------------------------------------
  51. BOOL
  52. RegReadPolicyKey(
  53. LPCTSTR);
  54. #endif // __POLICY_HXX__