Removed Windows.h includes.
Moved to stdint for integer types.
Replaced all __fastcall instances with a FASTCALL macro.
Replaced all __declspec(align) macros with ALIGN_MEM macros.
Updated the calls to swprintf to use the cwchar calling convention rather than the Windows one.