According to the WSAGetLastError()
documentation, it is supported for Windows Store apps on Windows 8.1.
However, I am getting the following error from Windows App Certification Kit - Test Results:
-API WSAGetLastError in wsock32.dll is not supported for this application type
I am developing a Windows Store app in Windows 8.1.
Am I missing something?
This was because a wrong library (wsock32.lib) was linked.
I had two libraries, wsock32.lib and Ws2_32.lib as input to my linker...:-( I removed wsock32.lib and it worked.
Thanks goes to Remy Lebeau (https://stackoverflow.com/users/65863/remy-lebeau).