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.

54 lines
1.5 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-2001.
  5. //
  6. // File: StoreRSOP.h
  7. //
  8. // Contents: CertStoreRSOP class definition
  9. //
  10. //----------------------------------------------------------------------------
  11. #ifndef __STORERSOP_H_INCLUDED__
  12. #define __STORERSOP_H_INCLUDED__
  13. #pragma warning(push, 3)
  14. #include <wbemcli.h>
  15. #pragma warning(pop)
  16. #include "cookie.h"
  17. #include "RSOPObject.h"
  18. class CCertStoreRSOP : public CCertStore
  19. {
  20. public:
  21. virtual PCCERT_CONTEXT EnumCertificates (PCCERT_CONTEXT pPrevCertContext);
  22. virtual HRESULT Commit () { return S_OK; }
  23. virtual bool IsReadOnly () { return true; }
  24. void AllowEmptyEFSPolicy();
  25. virtual bool IsNullEFSPolicy();
  26. virtual bool IsMachineStore();
  27. virtual bool CanContain (CertificateManagerObjectType nodeType);
  28. virtual HCERTSTORE GetStoreHandle (BOOL bSilent = FALSE, HRESULT* phr = 0);
  29. CCertStoreRSOP (
  30. DWORD dwFlags,
  31. LPCWSTR lpcszMachineName,
  32. LPCWSTR objectName,
  33. const CString & pcszLogStoreName,
  34. const CString & pcszPhysStoreName,
  35. CRSOPObjectArray& rsopObjectArray,
  36. const GUID& compDataGUID,
  37. IConsole* pConsole);
  38. virtual ~CCertStoreRSOP ();
  39. protected:
  40. HRESULT GetBlobs ();
  41. virtual void FinalCommit();
  42. private:
  43. bool m_fIsNullEFSPolicy;
  44. CRSOPObjectArray m_rsopObjectArray;
  45. };
  46. #endif // ~__STORERSOP_H_INCLUDED__