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.

52 lines
1.2 KiB

  1. //____________________________________________________________________________
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997 - 1999
  5. //
  6. // File: policy.h
  7. //
  8. // Contents: Helper class to determine policy for each snapin
  9. //
  10. // Classes: CPolicy
  11. //
  12. // Functions:
  13. //
  14. // History: 10/07/1998 AnandhaG Created
  15. // 12/04/1998 AnandhaG Modified according to spec.
  16. //____________________________________________________________________________
  17. #ifndef _POLICY_H_
  18. #define _POLICY_H_
  19. class CPolicy
  20. {
  21. public:
  22. // Constructor & destructor
  23. CPolicy() :
  24. m_bRestrictAuthorMode(FALSE),
  25. m_bRestrictedToPermittedList(FALSE)
  26. {
  27. // Set data above data members to reflect default
  28. // NT4 configuration. Always allow author mode
  29. // and allow snapins not in permitted list.
  30. }
  31. ~CPolicy()
  32. {
  33. }
  34. SC ScInit();
  35. bool IsPermittedSnapIn(REFCLSID refSnapInCLSID);
  36. bool IsPermittedSnapIn(LPCWSTR pszSnapInCLSID);
  37. // Data members.
  38. private:
  39. CRegKeyEx m_rPolicyRootKey;
  40. bool m_bRestrictAuthorMode;
  41. bool m_bRestrictedToPermittedList;
  42. };
  43. #endif // _POLICY_H_