WSAGetLastError does not pass Windows App Certification Kit Test

86 views Asked by At

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?

1

There are 1 answers

0
Mobile Application Developer On BEST ANSWER

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).