#ifdef WIN32
WSADATA wsaData;
WORD wVersionRequested = MAKEWORD(2, 0);
int nResult = WSAStartup(wVersionRequested, &wsaData);
if(nResult != 0)
{
printf("XNS_INIT WSAStartup Error !\r\n");
return XOS_FALSE;
}
if(LOBYTE(wsaData.wVersion) != 2 || HIBYTE(wsaData.wVersion) != 0)
{
printf("XNS_Init WSAStartup invalid ver.\r\n");
return XOS_FALSE;
}
#endif