extend API to enalbe exclusive port ranges to be specified for testing-system objects
[oweals/gnunet.git] / src / include / winproc.h
index 74e41edc95fd4e11a6e7d6f88074691cf5edeb07..6cbe56248d4cc8373b1cfc45e939bdacfa304139 100644 (file)
@@ -34,6 +34,9 @@
 #include <sys/timeb.h>
 #include <time.h>
 #include <dirent.h>
+#ifndef FD_SETSIZE
+#define FD_SETSIZE 1024
+#endif
 #include <winsock2.h>
 #include <ws2tcpip.h>
 #include <windows.h>
@@ -214,9 +217,9 @@ extern "C"
     int is_default;
     char pretty_name[1001];
     size_t addr_size;
-    struct sockaddr address;
-    struct sockaddr mask;
-    struct sockaddr broadcast;
+    SOCKADDR_STORAGE address;
+    SOCKADDR_STORAGE mask;
+    SOCKADDR_STORAGE broadcast;
   };
 
   int EnumNICs3 (struct EnumNICs3_results **, int *EnumNICs3_results_count);
@@ -224,6 +227,7 @@ extern "C"
   int GNInitWinEnv ();
   void GNShutdownWinEnv ();
 
+  BOOL SafeTerminateProcess (HANDLE hProcess, UINT uExitCode, DWORD dwTimeout);
 #ifdef __cplusplus
 }
 #endif