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.

67 lines
2.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000.
  5. //
  6. // File: V A L I D A T I O N M A N A G E R . H
  7. //
  8. // Contents: Validates device host inputs
  9. //
  10. // Notes:
  11. //
  12. // Author: mbend 9 Oct 2000
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include "uhres.h" // main symbols
  17. #include "ComUtility.h"
  18. #include "Array.h"
  19. #include "hostp.h"
  20. #include "Table.h"
  21. #include "UString.h"
  22. #include "RegDef.h"
  23. #include "uhxml.h"
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CValidationManager
  26. class ATL_NO_VTABLE CValidationManager :
  27. public CComObjectRootEx<CComMultiThreadModel>,
  28. public CComCoClass<CValidationManager, &CLSID_UPnPValidationManager>,
  29. public IUPnPValidationManager
  30. {
  31. public:
  32. CValidationManager();
  33. ~CValidationManager();
  34. DECLARE_REGISTRY_RESOURCEID(IDR_VALIDATION_MANAGER)
  35. DECLARE_NOT_AGGREGATABLE(CValidationManager)
  36. BEGIN_COM_MAP(CValidationManager)
  37. COM_INTERFACE_ENTRY(IUPnPValidationManager)
  38. END_COM_MAP()
  39. public:
  40. // IUPnPValidationManager methods
  41. STDMETHOD(ValidateDescriptionDocument)(
  42. /*[in]*/ BSTR bstrTemplate,
  43. /*[out, string]*/ wchar_t ** pszErrorString);
  44. STDMETHOD(ValidateServiceDescription)(
  45. /*[in, string]*/ const wchar_t * szFullPath,
  46. /*[out, string]*/ wchar_t ** pszErrorString);
  47. STDMETHOD(ValidateDescriptionDocumentAndReferences)(
  48. /*[in]*/ BSTR bstrTemplate,
  49. /*[in, string]*/ const wchar_t * szResourcePath,
  50. /*[out, string]*/ wchar_t ** pszErrorString);
  51. private:
  52. HRESULT ValidateServiceDescriptions(const wchar_t * szResourcePath,
  53. IXMLDOMNodePtr pRootNode,
  54. wchar_t ** pszErrorString);
  55. HRESULT ValidateIconFiles(const wchar_t * szResourcePath,
  56. IXMLDOMNodePtr pRootNode,
  57. wchar_t ** pszErrorString);
  58. };