I found that using WINDOWS prefix on Windows calls, fixed many problems for me on Windows 10 with fpc 3.0. Never needed to do so in previous versions of either.