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.

51 lines
1011 B

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