Fixed compilation issue on 32-bit Windows in srp
Building using Visual Studio 2022 fails on Windows for Win32 target. It builds correctly on x64. The reason is a lack of WINAPI attribute in a callback function. This attribute is meaningful only on Win32.
Important: Merge request !231 (merged) is also required to compile on Windows.