The <stdint.h> header shall declare sets of integer types having specified widths, and shall define corresponding sets of macros. It shall also define macros that specify limits of integer types corresponding to types defined in other standard headers.
Preserve the correct numerical values of various properties according and to the protocol.
BYTE = 1 byte DWORD = 4 bytes LONG = 4 bytes WORD = 2 bytes
What (in ASCII, decimal, or hexadecimal) must the first two bytes of any BMP file be? Leading bytes used to identify file formats (with high probability) are generally called "magic numbers."
0x4d42
bfSize = The size, in bytes, of the bitmap file.
If biHeight is negative, the bitmap is a top-down DIB and its origin is the upper-left corner.
biBitCount
Because the OS may fail to open the given file for various reasons such as passing in a filename of non-existent file.
Because there's only one file header and info header sizeof() returns the number of bytes necessary to store the entire structure.
3
Sets the file position indicator for the file stream stream to the value pointed to by offset.
It's a flag that determines the originating position of the fseek file operation.