57 L"SYSTEM\\CurrentControlSet\\Control\\Keyboard Layouts");
63 for (
DWORD dwIndex = 0; ; ++dwIndex)
81 if (dwLayoutId == dwSpecialId)
114 DWORD dwIndex, dwValue;
115 for (dwIndex = 0; ; ++dwIndex)
147 L"SYSTEM\\CurrentControlSet\\Control\\Keyboard Layouts\\%08lX",
271 szText[0] = szText[1] =
L'?';
289 if (hMemDC && hbmColor && hbmMask)
294 RECT rc = { 0, 0, nWidth, nHeight };
327 lf.
lfHeight = - (7 * cySmIcon) / 10;
398 if (szImeFileName[0])
535 for (
INT iKL = 0; iKL < cKLs; ++iKL)
578 for (
INT iKL = 0; iKL < cKLs; ++iKL)
581 info.m_hKL = phKLs[iKL];
631 TRACE(
"(%d)\n", iKL);
642 TRACE(
"(%d)\n", iKL);
651 iIcon = (*g_pMlngInfo)[iKL].GetIconIndex();
670 TRACE(
"(%d, %p, %p, %d)\n", iKL, phKL, pszDesc, cchDesc);
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static LPVOID cicMemAlloc(SIZE_T size)
static void cicMemFree(LPVOID ptr)
static LPVOID cicMemAllocClear(SIZE_T size)
void GetIconSize(INT *pcx, INT *pcy)
@implemented
void Init(INT cxIcon, INT cyIcon)
@implemented
INT AddIcon(HICON hIcon)
@implemented
void RemoveAll(BOOL bNoLock)
@implemented
HICON ExtractIcon(INT iIcon)
@implemented
INT GetImageCount()
@implemented
BOOL Add(const T_ITEM &item)
LSTATUS QuerySz(LPCTSTR pszValueName, LPTSTR pszValue, DWORD cchValueMax)
LSTATUS Open(HKEY hKey, LPCTSTR lpSubKey, REGSAM samDesired=KEY_READ)
LSTATUS EnumValue(DWORD dwIndex, LPTSTR lpValueName, DWORD cchValueName)
static LSTATUS(WINAPI *pRegDeleteTreeW)(HKEY
LONG WINAPI RegEnumKeyW(HKEY hKey, DWORD dwIndex, LPWSTR lpName, DWORD cbName)
UINT WINAPI ImmGetDescriptionW(HKL hKL, LPWSTR lpszDescription, UINT uBufLen)
UINT WINAPI ImmGetIMEFileNameW(HKL hKL, LPWSTR lpszFileName, UINT uBufLen)
INT WINAPI GetLocaleInfoW(LCID lcid, LCTYPE lctype, LPWSTR buffer, INT len)
HRESULT WINAPI SHLoadRegUIStringW(HKEY hkey, LPCWSTR value, LPWSTR buf, DWORD size)
UINT WINAPI ExtractIconExW(LPCWSTR lpszFile, INT nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIcons)
#define SPECIALIDFROMHKL(hKL)
#define IS_SPECIAL_HKL(hKL)
_Check_return_ unsigned long __cdecl wcstoul(_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
_Out_opt_ PICONINFO IconInfo
static VOID CreateMlngInfo(VOID)
@implemented
static VOID DestroyMlngInfo(VOID)
@implemented
HICON GetIconFromFile(_In_ INT cx, _In_ INT cy, _In_ LPCWSTR pszFileName, _In_ INT iIcon)
@implemented
CStaticIconList g_IconList
HICON InatCreateIconBySize(_In_ LANGID LangID, _In_ INT nWidth, _In_ INT nHeight, _In_ const LOGFONTW *plf)
@implemented
EXTERN_C BOOL WINAPI TF_GetMlngHKL(_In_ INT iKL, _Out_opt_ HKL *phKL, _Out_opt_ LPWSTR pszDesc, _In_ INT cchDesc)
DWORD GetHKLSubstitute(_In_ HKL hKL)
@implemented
VOID InatRemoveAll(VOID)
@implemented
static BOOL GetHKLName(_In_ HKL hKL, _Out_ LPWSTR pszDesc, _In_ UINT cchDesc)
@implemented
static BOOL CheckMlngInfo(VOID)
@implemented
INT InatAddIcon(_In_ HICON hIcon)
@implemented
static BOOL GetHKLDesctription(_In_ HKL hKL, _Out_ LPWSTR pszDesc, _In_ UINT cchDesc, _Out_ LPWSTR pszImeFileName, _In_ UINT cchImeFileName)
@implemented
DWORD GetSpecialKLID(_In_ HKL hKL)
@implemented
HICON InatCreateIcon(_In_ LANGID LangID)
@implemented
static DWORD s_dwCacheKLID
INT InatGetImageCount(VOID)
@implemented
EXTERN_C INT WINAPI TF_GetMlngIconIndex(_In_ INT iKL)
static BOOL EnsureIconImageList(VOID)
@implemented
static BOOL GetKbdLayoutNameFromReg(_In_ HKL hKL, _Out_ LPWSTR pszDesc, _In_ UINT cchDesc)
@implemented
VOID UninitINAT(VOID)
@implemented
EXTERN_C HICON WINAPI TF_InatExtractIcon(_In_ INT iKL)
BOOL InatGetIconSize(_Out_ INT *pcx, _Out_ INT *pcy)
@implemented
CicArray< MLNGINFO > * g_pMlngInfo
EXTERN_C INT WINAPI TF_MlngInfoCount(VOID)
static INT GetPhysicalFontHeight(LOGFONTW *plf)
@implemented
HICON GetIconFromFile(_In_ INT cx, _In_ INT cy, _In_ LPCWSTR pszFileName, _In_ INT iIcon)
@implemented
INT InatAddIcon(_In_ HICON hIcon)
@implemented
HICON InatCreateIcon(_In_ LANGID LangID)
@implemented
BOOL InatGetIconSize(_Out_ INT *pcx, _Out_ INT *pcy)
@implemented
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
HRESULT WINAPI TF_InitMlngInfo(void)
INT WINAPI DrawTextW(HDC hdc, LPCWSTR str, INT count, LPRECT rect, UINT flags)
static const WCHAR szName[]
_Out_opt_ int _Out_opt_ int * cy
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
void InitDesc()
@implemented
void InitIcon()
@implemented
void SetDesc(LPCWSTR pszDesc)
@implemented
INT GetIconIndex()
@implemented
LPCWSTR GetDesc()
@implemented
WORD WORD PSZ PSZ pszFileName
_Must_inspect_result_ _In_ WDFUSBDEVICE _In_opt_ WDFREQUEST _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_writes_opt_ NumCharacters PUSHORT _Inout_ PUSHORT _In_ UCHAR _In_opt_ USHORT LangID
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
BOOL WINAPI GetTextMetricsW(_In_ HDC, _Out_ LPTEXTMETRICW)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
BOOL WINAPI ExtTextOutW(_In_ HDC hdc, _In_ int x, _In_ int y, _In_ UINT options, _In_opt_ const RECT *lprect, _In_reads_opt_(c) LPCWSTR lpString, _In_ UINT c, _In_reads_opt_(c) const INT *lpDx)
BOOL WINAPI PatBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
HFONT WINAPI CreateFontIndirectW(_In_ const LOGFONTW *)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
BOOL WINAPI DeleteDC(_In_ HDC)
#define LOCALE_NOUSEROVERRIDE
#define LOCALE_SABBREVLANGNAME
#define HKEY_LOCAL_MACHINE
#define HKEY_CURRENT_USER
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
DWORD WINAPI GetSysColor(_In_ int)
HICON WINAPI CreateIconIndirect(_In_ PICONINFO)
HICON WINAPI CopyIcon(_In_ HICON)
#define SPI_GETICONTITLELOGFONT
UINT WINAPI GetKeyboardLayoutList(_In_ int nBuff, _Out_writes_to_opt_(nBuff, return) HKL FAR *lpList)
#define COLOR_HIGHLIGHTTEXT
HDC WINAPI GetDC(_In_opt_ HWND)
BOOL WINAPI SystemParametersInfoW(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni)
int WINAPI GetSystemMetrics(_In_ int)
BOOL WINAPI DestroyIcon(_In_ HICON)
LPWSTR WINAPI CharUpperW(_Inout_ LPWSTR)