#pragma pack(1) typedef struct colorHdr { BYTE tag; short colors; BYTE reserved[47]; } COLORhdr; #pragma pack()