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.

56 lines
1.5 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000-2001.
  5. //
  6. // File: SaferLevel.h
  7. //
  8. // Contents: Declaration of CSaferLevel
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_SAFERLEVEL_H__894DD3C5_A1A4_4DD5_8853_5F999D8F3FF5__INCLUDED_)
  12. #define AFX_SAFERLEVEL_H__894DD3C5_A1A4_4DD5_8853_5F999D8F3FF5__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. #include "cookie.h"
  17. #include "RSOPObject.h"
  18. class CSaferLevel : public CCertMgrCookie
  19. {
  20. public:
  21. CSaferLevel(
  22. DWORD dwSaferLevel,
  23. bool bIsMachine,
  24. PCWSTR pszMachineName,
  25. PCWSTR pszObjectName,
  26. IGPEInformation* pGPEInformation,
  27. CRSOPObjectArray& rRSOPArray);
  28. virtual ~CSaferLevel();
  29. DWORD GetLevel () const
  30. {
  31. return m_dwSaferLevel;
  32. }
  33. bool IsDefault ();
  34. HRESULT SetAsDefault ();
  35. CString GetDescription () const;
  36. static DWORD ReturnDefaultLevel (
  37. IGPEInformation* pGPEInformation,
  38. bool bIsComputer,
  39. CRSOPObjectArray& rRSOPArray);
  40. private:
  41. CString m_szLevel;
  42. const bool m_bIsComputer;
  43. CString m_szDescription;
  44. const DWORD m_dwSaferLevel;
  45. IGPEInformation* m_pGPEInformation;
  46. CRSOPObjectArray& m_rRSOPArray;
  47. };
  48. #endif // !defined(AFX_SAFERLEVEL_H__894DD3C5_A1A4_4DD5_8853_5F999D8F3FF5__INCLUDED_)