Not neccessary to check patch version. Added __cdecl for c functions, jst in case