Why typedef char CHAR
2 answers
The WIN32 API must also be agnostic. When the compiler is tuned for different word sizes, the types can change as well.
For example, on 16-bit platforms:
typedef WORD unsigned int;
typedef DWORD unsigned long;
On 32-bit platforms:
typedef WORD unsigned short;
typedef DWORD unsigned int;
In this example, your mileage may vary.
+4
a source to share