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.

53 lines
1.2 KiB

  1. /**********************************************************************/
  2. /** Microsoft Passport **/
  3. /** Copyright(c) Microsoft Corporation, 1999 - 2001 **/
  4. /**********************************************************************/
  5. /*
  6. ppshadowdocument.h
  7. FILE HISTORY:
  8. */
  9. #ifndef __PPSHADOWDOCUMENT_H
  10. #define __PPSHADOWDOCUMENT_H
  11. #include <msxml.h>
  12. #include "tstring"
  13. using namespace std;
  14. //
  15. //
  16. // shadowdocument manages a shadow local CCD
  17. //
  18. //
  19. class PpShadowDocument
  20. {
  21. public:
  22. PpShadowDocument();
  23. PpShadowDocument(tstring& strURL);
  24. PpShadowDocument(tstring& strURL, tstring& strLocalFile);
  25. void SetURL(tstring& strURL);
  26. void SetLocalFile(tstring& strLocalFile);
  27. HRESULT GetDocument(IXMLDocument** ppiXMLDocument, BOOL bForceFetch = TRUE);
  28. private:
  29. BOOL IsValidCCD(IXMLDocument* piXMLDocument);
  30. BOOL NoPersist(IXMLDocument* piXMLDocument);
  31. HRESULT SaveDocument(IXMLDocument* piXMLDocument);
  32. HRESULT LoadDocument(IXMLDocument** ppiXMLDocument);
  33. tstring m_strURL;
  34. tstring m_strLocalFile;
  35. bool m_bFailing;
  36. };
  37. #endif // __PPSHADOWDOCUMENT_H