private void Window_Loaded(object sender, RoutedEventArgs e) { WSAData dummy = new WSAData(); m_socketAccessable = NativeMethods.WSAStartup(0x0202, ref dummy) == 0; }
public static extern Int32 WSAStartup(short wVersionRequested, ref WSAData wsaData);