https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e5f637f93f919667550eb…
commit e5f637f93f919667550eb43b66ff4189012e12fc
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Apr 14 11:23:16 2022 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Apr 14 11:23:16 2022 +0900
[IMM32] Add Win: comments more (#4449)
CORE-11700
---
dll/win32/imm32/ime.c | 1 +
dll/win32/imm32/precomp.h | 1 +
dll/win32/imm32/utils.c | 3 +++
3 files changed, 5 insertions(+)
diff --git a/dll/win32/imm32/ime.c b/dll/win32/imm32/ime.c
index 5b7720363aa..e9c80d195b5 100644
--- a/dll/win32/imm32/ime.c
+++ b/dll/win32/imm32/ime.c
@@ -355,6 +355,7 @@ Quit:
return ret;
}
+// Win: ImmGetImeMenuItemsInterProcess
DWORD APIENTRY
Imm32GetImeMenuItemWCrossProcess(HIMC hIMC, DWORD dwFlags, DWORD dwType, LPVOID
lpImeParentMenu,
LPVOID lpImeMenu, DWORD dwSize)
diff --git a/dll/win32/imm32/precomp.h b/dll/win32/imm32/precomp.h
index f80fe47781c..82af0034e9b 100644
--- a/dll/win32/imm32/precomp.h
+++ b/dll/win32/imm32/precomp.h
@@ -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) !=
diff --git a/dll/win32/imm32/utils.c b/dll/win32/imm32/utils.c
index 810bd0acd58..26f6715f4fc 100644
--- a/dll/win32/imm32/utils.c
+++ b/dll/win32/imm32/utils.c
@@ -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)