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.

53 lines
1.2 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: WMIparse.h
  4. //
  5. // Author: Kjell Swedin
  6. // Copyright (c) 1995-2001 Microsoft Corporation, All Rights Reserved
  7. //
  8. //-----------------------------------------------------------------------------
  9. #ifndef WMIPARSE_H
  10. #define WMIPARSE_H
  11. #define OPT_DISABLE_WATERMARKING "DisableWatermarking"
  12. class CWMILocParser : public CPULocParser
  13. {
  14. public:
  15. CWMILocParser();
  16. ~CWMILocParser();
  17. // Overrides
  18. public:
  19. // ILocParser
  20. virtual HRESULT OnInit(IUnknown *);
  21. virtual HRESULT OnCreateFileInstance(ILocFile * &, FileType);
  22. virtual void OnGetParserInfo(ParserInfo &) const;
  23. virtual void OnGetFileDescriptions(CEnumCallback &) const;
  24. // ILocVersion
  25. virtual void OnGetParserVersion(DWORD &dwMajor, DWORD &dwMinor, BOOL &fDebug) const;
  26. // ILocStringValidation
  27. virtual CVC::ValidationCode OnValidateString(const CLocTypeId &ltiType,
  28. const CLocTranslation &trTrans, CReporter *pReporter,
  29. const CContext &context);
  30. // Implementation
  31. protected:
  32. void GetDefaultExtensionList(CLocExtensionList & elExtList) const;
  33. private:
  34. void RegisterOptions();
  35. void UnRegisterOptions();
  36. BOOL m_fOptionInit;
  37. };
  38. #endif