10
WORD wVersionRequested;
14
wVersionRequested = MAKEWORD( 1, 0 );
15
err = WSAStartup( wVersionRequested, &wsaData );
18
// no usable DLL found
19
printf( "WinSock DLL version 1.0 or higher not found.\n" );
24
int error = WSAGetLastError();
26
printf( "WSA Error before stat call = %d\n", error );
29
int statError = stat( "DoesNotExist", &fileInfo );
31
printf( "stat error = %d\n", statError );
33
error = WSAGetLastError();
35
printf( "WSA Error after stat call = %d\n", error );