Possible Duplicate:
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
this is my struct and the size of it is 40 but the size of all variables is 34. how can I eliminate extra space of this struct?
typedef struct
{
USHORT SequenceNumber;
USHORT LinkCount;
USHORT AttributeOffset;
USHORT Flags;
ULONG BytesInUse;
ULONG BytesAllocated;
ULONGLONG BaseFileRecord;
USHORT NextAttributeNumber;
USHORT Padding;
ULONG MFTRecordNumber;
USHORT UpdateSeqNum;
} FILE_RECORD_HEADER, *PFILE_RECORD_HEADER;