[NTUSER][INCLUDE] Add IMC offset info (#4439)

Add C_ASSERT assertions on the offsets of the members of IMC structure. CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2022-04-10 07:27:30 +09:00 committed by GitHub
parent 04eca8e2b2
commit de38e3be61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;