Hi Mohamed,
From your last error message "Error 143 error C1189: #error : "Error: http server APIs are not supported in XP" ", you are trying to target XP or building on XP. Possibly you use the wrong .dll file.
From your last error message "Error 143 error C1189: #error : "Error: http server APIs are not supported in XP" ", you are trying to target XP or building on XP. Possibly you use the wrong .dll file.