Use the header_size method instead of a hard-coded 8.
Use stdcall convention.