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
47 lines
1.5 KiB
/*=========================================================================*
|
|
| LRC32 - Localized Resource Test Utility |
|
|
| |
|
|
| Copyright 1996 by Microsoft Corporation |
|
|
| KevinGj - January 1996 |
|
|
| |
|
|
|=========================================================================|
|
|
| LangInfo.h : Header for the CLangInfo class |
|
|
*=========================================================================*/
|
|
|
|
#ifndef LANGCODE_H
|
|
#define LANGCODE_H
|
|
|
|
|
|
#include "windows.h"
|
|
|
|
class CLangInfo
|
|
{
|
|
public:
|
|
//Constructors
|
|
CLangInfo()
|
|
{
|
|
m_hMod = LoadLibrary("mlang.dll");
|
|
}
|
|
|
|
~CLangInfo()
|
|
{
|
|
if (m_hMod)
|
|
FreeLibrary(m_hMod);
|
|
}
|
|
|
|
//Queries
|
|
BOOL GetAcceptLanguageString(LCID Locale, char *szAcceptLngStr, int nSize);
|
|
BOOL GetLocaleStrings(LCID Locale, char *szLocaleStr, int iLen) const;
|
|
|
|
private:
|
|
LCID GetPrimaryLanguageInfo(LCID Locale, char *szLocaleStr, int iLen) const;
|
|
HMODULE m_hMod;
|
|
|
|
};
|
|
|
|
#endif // LANGINFO_H
|
|
|
|
//=======================================================================//
|
|
// - EOF - //
|
|
//=======================================================================//
|
|
|