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.

47 lines
1.5 KiB

  1. /*=========================================================================*
  2. | LRC32 - Localized Resource Test Utility |
  3. | |
  4. | Copyright 1996 by Microsoft Corporation |
  5. | KevinGj - January 1996 |
  6. | |
  7. |=========================================================================|
  8. | LangInfo.h : Header for the CLangInfo class |
  9. *=========================================================================*/
  10. #ifndef LANGCODE_H
  11. #define LANGCODE_H
  12. #include "windows.h"
  13. class CLangInfo
  14. {
  15. public:
  16. //Constructors
  17. CLangInfo()
  18. {
  19. m_hMod = LoadLibrary("mlang.dll");
  20. }
  21. ~CLangInfo()
  22. {
  23. if (m_hMod)
  24. FreeLibrary(m_hMod);
  25. }
  26. //Queries
  27. BOOL GetAcceptLanguageString(LCID Locale, char *szAcceptLngStr, int nSize);
  28. BOOL GetLocaleStrings(LCID Locale, char *szLocaleStr, int iLen) const;
  29. private:
  30. LCID GetPrimaryLanguageInfo(LCID Locale, char *szLocaleStr, int iLen) const;
  31. HMODULE m_hMod;
  32. };
  33. #endif // LANGINFO_H
  34. //=======================================================================//
  35. // - EOF - //
  36. //=======================================================================//