projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04eca8e
)
[NTUSER][INCLUDE] Add IMC offset info (#4439)
author
Katayama Hirofumi MZ
<katayama.hirofumi.mz@gmail.com>
Sat, 9 Apr 2022 22:27:30 +0000
(07:27 +0900)
committer
GitHub
<noreply@github.com>
Sat, 9 Apr 2022 22:27:30 +0000
(07:27 +0900)
Add C_ASSERT assertions on the offsets of the members of IMC structure. CORE-11700
win32ss/include/ntuser.h
patch
|
blob
|
history
diff --git
a/win32ss/include/ntuser.h
b/win32ss/include/ntuser.h
index
846750c
..
56e13e2
100644
(file)
--- a/
win32ss/include/ntuser.h
+++ b/
win32ss/include/ntuser.h
@@
-195,6
+195,15
@@
typedef struct tagIMC
HWND hImeWnd;
} IMC, *PIMC;
+#ifndef _WIN64
+C_ASSERT(offsetof(IMC, head.h) == 0x0);
+C_ASSERT(offsetof(IMC, head.cLockObj) == 0x4);
+C_ASSERT(offsetof(IMC, head.pti) == 0x8);
+C_ASSERT(offsetof(IMC, pImcNext) == 0x14);
+C_ASSERT(offsetof(IMC, dwClientImcData) == 0x18);
+C_ASSERT(offsetof(IMC, hImeWnd) == 0x1c);
+#endif
+
typedef struct _PROCDESKHEAD
{
HEAD;