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
1.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1997.
  5. //
  6. // File: parsver.hxx
  7. //
  8. // Contents: IParserVerify implementation
  9. //
  10. // Classes: CImpIParserVerify
  11. //
  12. // History: 11-20-97 danleg Created
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include <mparser.h>
  17. class CSimpleCommandCreator;
  18. //+---------------------------------------------------------------------------
  19. //
  20. // Class: CRootQuerySpec
  21. //
  22. // Purpose: Callback for parser to verify information
  23. //
  24. // History: 11-20-97 danleg Created
  25. //----------------------------------------------------------------------------
  26. class CImpIParserVerify : public IParserVerify
  27. {
  28. public:
  29. CImpIParserVerify ( );
  30. //
  31. // IUnknown methods
  32. //
  33. STDMETHODIMP QueryInterface ( REFIID riid, LPVOID* ppVoid );
  34. STDMETHODIMP_(ULONG) Release ( void );
  35. STDMETHODIMP_(ULONG) AddRef ( void );
  36. //
  37. // IParserVerify methods
  38. //
  39. STDMETHODIMP VerifyMachine ( LPCWSTR pcwszMachine );
  40. STDMETHODIMP VerifyCatalog ( LPCWSTR pcwszMachine,
  41. LPCWSTR pcwszCatalog );
  42. //
  43. // Non-interface methods
  44. //
  45. STDMETHODIMP GetDefaultCatalog ( LPWSTR pwszCatalogName,
  46. ULONG cwcIn,
  47. ULONG * pcwcOut );
  48. void GetColMapCreator ( IColumnMapperCreator** pICMC );
  49. private:
  50. //
  51. // Data members
  52. //
  53. LONG _cRef;
  54. XInterface<ISimpleCommandCreator> _xISimpleCommandCreator;
  55. };