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.

54 lines
1.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000-2001.
  5. //
  6. // File: PolicyOID.h
  7. //
  8. // Contents: CPolicyOID
  9. //
  10. //----------------------------------------------------------------------------
  11. #ifndef __POLICYOID_H_INCLUDED__
  12. #define __POLICYOID_H_INCLUDED__
  13. class CPolicyOID {
  14. public:
  15. void SetDisplayName (const CString& szDisplayName);
  16. bool IsApplicationOID () const;
  17. bool IsIssuanceOID () const;
  18. CPolicyOID (const CString& szOID, const CString& szDisplayName,
  19. ADS_INTEGER flags, bool bCanRename = true);
  20. virtual ~CPolicyOID ();
  21. CString GetOIDW () const
  22. {
  23. return m_szOIDW;
  24. }
  25. PCSTR GetOIDA () const
  26. {
  27. return m_pszOIDA;
  28. }
  29. CString GetDisplayName () const
  30. {
  31. return m_szDisplayName;
  32. }
  33. bool CanRename () const
  34. {
  35. return m_bCanRename;
  36. }
  37. private:
  38. const ADS_INTEGER m_flags;
  39. CString m_szOIDW;
  40. CString m_szDisplayName;
  41. PSTR m_pszOIDA;
  42. const bool m_bCanRename;
  43. };
  44. typedef CTypedPtrList<CPtrList, CPolicyOID*> POLICY_OID_LIST;
  45. #endif // __POLICYOID_H_INCLUDED__