Why this structure should have 48 bytes
Posted
by Maksee
on Stack Overflow
See other posts from Stack Overflow
or by Maksee
Published on 2010-06-18T15:48:28Z
Indexed on
2010/06/18
15:53 UTC
Read the original article
Hit count: 408
I tried to translate some new part of winuser.h header to Delphi. Why this structure is expected to be 48 bytes (only this size was accepted by the corresponding function). With 4-bytes boundary, it looks like it should have 40 bytes.
typedef struct tagGESTUREINFO {
UINT cbSize;
DWORD dwFlags;
DWORD dwID;
HWND hwndTarget;
POINTS ptsLocation;
DWORD dwInstanceID;
DWORD dwSequenceID;
ULONGLONG ullArguments;
UINT cbExtraArgs;
} GESTUREINFO, *PGESTUREINFO;
If it's related to 8-bytes boundary? if so is it relevant to any case where ULONGLONG appears structures?
Thanks
© Stack Overflow or respective owner