Windows2003-3790/inetcore/urlmon/download/langcode.h

48 lines
1.5 KiB
C
Raw Normal View History

2001-01-01 00:00:00 +01:00
/*=========================================================================*
| 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 - //
//=======================================================================//