[IMM32] Add Win: comments more (#4449)

CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2022-04-14 11:23:16 +09:00 committed by GitHub
parent 0c5fc49f82
commit e5f637f93f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View file

@ -355,6 +355,7 @@ Quit:
return ret;
}
// Win: ImmGetImeMenuItemsInterProcess
DWORD APIENTRY
Imm32GetImeMenuItemWCrossProcess(HIMC hIMC, DWORD dwFlags, DWORD dwType, LPVOID lpImeParentMenu,
LPVOID lpImeMenu, DWORD dwSize)

View file

@ -102,6 +102,7 @@ static inline BOOL Imm32IsCrossThreadAccess(HIMC hIMC)
return (dwImeThreadId != dwThreadId);
}
// Win: TestWindowProcess
static inline BOOL Imm32IsCrossProcessAccess(HWND hWnd)
{
return (NtUserQueryWindow(hWnd, QUERY_WINDOW_UNIQUE_PROCESS_ID) !=

View file

@ -50,6 +50,7 @@ BOOL APIENTRY Imm32IsSystemJapaneseOrKorean(VOID)
return (wPrimary == LANG_JAPANESE || wPrimary == LANG_KOREAN);
}
// Win: IsAnsiIMC
BOOL WINAPI Imm32IsImcAnsi(HIMC hIMC)
{
BOOL ret;
@ -166,6 +167,7 @@ static PVOID FASTCALL DesktopPtrToUser(PVOID ptr)
return (PVOID)NtUserCallOneParam((DWORD_PTR)ptr, ONEPARAM_ROUTINE_GETDESKTOPMAPPING);
}
// Win: HMValidateHandle
LPVOID FASTCALL ValidateHandleNoErr(HANDLE hObject, UINT uType)
{
UINT index;
@ -223,6 +225,7 @@ BOOL APIENTRY Imm32CheckImcProcess(PIMC pIMC)
return dwProcessID == (DWORD_PTR)NtCurrentTeb()->ClientId.UniqueProcess;
}
// Win: ImmLocalAlloc
LPVOID APIENTRY ImmLocalAlloc(DWORD dwFlags, DWORD dwBytes)
{
if (!ghImmHeap)