#include <sys/timeb.h>
#include <time.h>
#include <dirent.h>
+#include <winsock2.h>
+#include <ws2tcpip.h>
#include <windows.h>
-#include <winsock.h>
#include <winerror.h>
#include <iphlpapi.h>
#include <shlobj.h>
#include <objbase.h>
#include <sys/param.h> /* #define BYTE_ORDER */
-#include <Ntsecapi.h>
+#include <ntsecapi.h>
#include <lm.h>
-#include <Aclapi.h>
+#include <aclapi.h>
#ifdef __cplusplus
BOOL CreateShortcut (const char *pszSrc, const char *pszDest);
BOOL DereferenceShortcut (char *pszShortcut);
- long QueryRegistry (HKEY hMainKey, char *pszKey, char *pszSubKey,
+ long QueryRegistry (HKEY hMainKey, const char *pszKey, const char *pszSubKey,
char *pszBuffer, long *pdLength);
- int ListNICs (void (*callback) (const char *, int, void *), void *cls);
+ int ListNICs (void (*callback) (void *, const char *, int), void *cls);
BOOL AddPathAccessRights (char *lpszFileName, char *lpszAccountName,
DWORD dwAccessMask);
char *winErrorStr (const char *prefix, int dwErr);
-
- void GNInitWinEnv ();
+ void EnumNICs(PMIB_IFTABLE *pIfTable, PMIB_IPADDRTABLE *pAddrTable);
+ int GNInitWinEnv ();
void GNShutdownWinEnv ();
#ifdef __cplusplus