The MAKEWORD(2,2) parameter of WSAStartup makes a request for version 2.2 of Winsock on the system, and sets the passed version as the highest version of Windows Sockets support that the caller can use. The WSADATA structure contains information about the Windows Sockets implementation. The WSAStartup function is called to initiate use of WS2_32.dll. Printf("WSAStartup failed: %d\n", iResult) The MAKEWORD (2,2) parameter of WSAStartup makes a request. Reset Winsock for Windows Vista Click windows icon Type netsh winsock reset at the command prompt, and then press ENTER. The WSAStartup function is called to initiate use of WS232.dll. IResult = WSAStartup(MAKEWORD(2,2),
0 Comments
Leave a Reply. |