I only understand English but I'm guessing that your code fails on Windows XP sp3 because it is attempting to use functions that were introduced in Windows Vista. When you build to Target windows XP sp3 you must properly define _WIN32_WINNT before including any sdk headers. Refer to using-the-windows-headers
For example,
#define NTDDI_VERSION NTDDI_WINXPSP3
#define _WIN32_WINNT _WIN32_WINNT_WINXP
#include <Windows.h>
After properly targeting for Windows XPSP3 any code attempting to use functions that were not available until later versions of Windows will now cause compilation errors. So it will be necessary to find alternate solutions that are available in the version of Windows that is targeted.