Problems with wshelper res_init.c
Douglas E. Engert
deengert at anl.gov
Thu Jul 10 14:55:29 EDT 2003
Bill,
Here is a revised res_init.c which calls the res_init_startup so
the iphlpapi.dll will get loaded and used in W2K and XP.
This is only needed in the kx509 version.
You could also fix this be calling the res_init_startup from the kx509.c
The MIT version should not need any of the changes I sent in yesterday.
*** ,res_init.c Thu Mar 28 15:45:19 2002
--- res_init.c Thu Jul 10 13:45:24 2003
***************
*** 125,130 ****
--- 125,133 ----
static HMODULE this_module();
+ void res_init_startup();
+ void res_init_cleanup();
+
#ifndef _WIN32
#ifndef KEY_QUERY_VALUE
***************
*** 257,262 ****
--- 260,267 ----
#define WSH_SPACES " \t,;="
+ res_init_startup();
+
_res.nsaddr.sin_addr.s_addr = INADDR_ANY;
_res.nsaddr.sin_family = AF_INET;
_res.nsaddr.sin_port = htons(NAMESERVER_PORT);
***************
*** 282,287 ****
--- 287,293 ----
havens++;
nserv = _res.nscount;
}
+ OutputDebugString("Nameservers from iphlp");
}
if( which_reg ){
***************
*** 1812,1820 ****
cb = BUFSIZ;
return RegQueryValue(key, subkey, buf, &cb) == ERROR_SUCCESS;
}
-
- void res_init_startup();
- void res_init_cleanup();
static
HMODULE
--- 1818,1823 ----
More information about the krbdev
mailing list