"Ulrich Weigand" weigand@immd1.informatik.uni-erlangen.de wrote:
Without pshpack4.h sizeof(LUID_AND_ATTRIBUTES)=16 instead of 12. Don't ask me why.
Because the size of a structure is always padded to the next multiple of its alignment (so that in an array of structures, every element is properly aligned iff the array is). By changing the alignment, you therefore also sometimes change the size of a structure ...
Ulrich, thanks for explanations. I believe that's the case for the FILETIME vs. LARGE_INTEGER issue too.
-- Dmitry.