[IMM32] Rewrite ImmIsIME (Retry) (#3803)

- Rewrite ImmIsIME function.
- Fix enum IMEINFOEXCLASS.
CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2021-07-08 14:23:25 +09:00 committed by GitHub
parent 4339ae8c7e
commit 211de1257e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -2200,10 +2200,16 @@ HKL WINAPI ImmInstallIMEW(
*/
BOOL WINAPI ImmIsIME(HKL hKL)
{
#ifdef __REACTOS__
IMEINFOEX info;
TRACE("ImmIsIME(%p)\n", hKL);
return !!ImmGetImeInfoEx(&info, ImeInfoExImeWindow, &hKL);
#else
ImmHkl *ptr;
TRACE("(%p):\n", hKL);
ptr = IMM_GetImmHkl(hKL);
return (ptr && ptr->hIME);
#endif
}
/***********************************************************************

View file

@ -1179,6 +1179,7 @@ typedef struct tagIMEINFOEX
typedef enum IMEINFOEXCLASS
{
ImeInfoExKeyboardLayout,
ImeInfoExImeWindow,
ImeInfoExImeFileName
} IMEINFOEXCLASS;