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.
30 lines
460 B
30 lines
460 B
/*++
|
|
|
|
Copyright (c) 2001, Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
misc.cpp
|
|
|
|
Abstract:
|
|
|
|
Author:
|
|
|
|
Revision History:
|
|
|
|
Notes:
|
|
|
|
--*/
|
|
|
|
#include "private.h"
|
|
#pragma warning(disable: 4005)
|
|
#include <wingdip.h>
|
|
|
|
extern "C" BYTE GetCharsetFromLangId(LCID lcid)
|
|
{
|
|
CHARSETINFO csInfo;
|
|
|
|
if (!TranslateCharsetInfo((DWORD *)(ULONG_PTR)lcid, &csInfo, TCI_SRCLOCALE))
|
|
return DEFAULT_CHARSET;
|
|
return (BYTE) csInfo.ciCharset;
|
|
}
|