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.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1994.
  5. //
  6. // File: langres.hxx
  7. //
  8. // Contents: Interacts with the registry to obtain local specific info.
  9. //
  10. // Classes: CLangRes
  11. //
  12. // History: 2-14-97 mohamedn created
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. //+---------------------------------------------------------------------------
  17. //
  18. // Class: CLangRes
  19. //
  20. // Purpose: obtains language resource configuration information (IWordBreaker,
  21. // IStemmer, and NoiseWordList) from the registry.
  22. //
  23. // History: 2-14-97 mohamedn created
  24. //
  25. // Notes:
  26. //
  27. //----------------------------------------------------------------------------
  28. class CLangRes
  29. {
  30. public:
  31. static SCODE GetWordBreaker( LCID locale,
  32. PROPID pid,
  33. IWordBreaker ** ppwbBreaker );
  34. static SCODE GetStemmer ( LCID locale,
  35. PROPID pid,
  36. IStemmer ** ppStemmer );
  37. static SCODE GetNoiseWordList( LCID locale,
  38. PROPID pid,
  39. IStream ** ppIStrmNoiseFile);
  40. static void StringToCLSID( WCHAR *wszClass, GUID& guidClass );
  41. private:
  42. static IStream * _GetIStrmNoiseFile(const WCHAR *pwszNoiseFile );
  43. };