Hi,
Yeah, we did not tested sipXtapi on Win98 for a very long time, but we did
not meant to break compatibility with it. If it will not take too much of code
it would be good thing to suport Win98.
Try attached patch and let us know weither it helps.
--
Regards,
Alexander Chemeris.
SIPez LLC.
SIP VoIP, IM and Presence Consulting
http://www.SIPez.com
tel: +1 (617) 273-4000
Index: sipXportLib/src/os/Wnt/getWindowsDNSServers.cpp
===================================================================
--- sipXportLib/src/os/Wnt/getWindowsDNSServers.cpp (revision 10472)
+++ sipXportLib/src/os/Wnt/getWindowsDNSServers.cpp (working copy)
@@ -134,25 +134,30 @@
else
{
//now find IPHelper functions
- *(FARPROC*)&GetNetworkParams = GetProcAddress(hIpHelperModule,"GetNetworkParams");
- if (GetNetworkParams == NULL)
+ int windowsVersion = getWindowsVersion();
+ if (windowsVersion >= WINDOWS_VERSION_2000)
{
- OsSysLog::add(FAC_KERNEL, PRI_ERR, "Could not get the proc address to GetNetworkParams!\n");
- FreeLibrary(hIpHelperModule);
- hIpHelperModule = NULL;
- }
-
- *(FARPROC*)&GetPerAdapterInfo = GetProcAddress(hIpHelperModule,"GetPerAdapterInfo");
- if (GetPerAdapterInfo == NULL)
+ *(FARPROC*)&GetPerAdapterInfo = GetProcAddress(hIpHelperModule,"GetPerAdapterInfo");
+ if (GetPerAdapterInfo == NULL)
+ {
+ OsSysLog::add(FAC_KERNEL, PRI_ERR, "Could not get the proc address to GetPerAdapterInfo!\n");
+ FreeLibrary(hIpHelperModule);
+ hIpHelperModule = NULL;
+ }
+ }
+ else
{
- OsSysLog::add(FAC_KERNEL, PRI_ERR, "Could not get the proc address to GetPerAdapterInfo!\n");
- FreeLibrary(hIpHelperModule);
- hIpHelperModule = NULL;
- }
-
+ *(FARPROC*)&GetNetworkParams = GetProcAddress(hIpHelperModule,"GetNetworkParams");
+ if (GetNetworkParams == NULL)
+ {
+ OsSysLog::add(FAC_KERNEL, PRI_ERR, "Could not get the proc address to GetNetworkParams!\n");
+ FreeLibrary(hIpHelperModule);
+ hIpHelperModule = NULL;
+ }
+ }
*(FARPROC*)&GetInterfaceInfo = GetProcAddress(hIpHelperModule,"GetInterfaceInfo");
- if (GetPerAdapterInfo == NULL)
+ if (GetInterfaceInfo == NULL)
{
OsSysLog::add(FAC_KERNEL, PRI_ERR, "Could not get the proc address to GetInterfaceInfo!\n");
FreeLibrary(hIpHelperModule);
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/