Rename structures and macros to use the same names as Win32.
Wrap all Win32 API functions that we use.