Ethereal-dev: Re: [Ethereal-dev] Crashes on Win98 and WinME fixed

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Lars Roland <lars.roland@xxxxxxx>
Date: Mon, 17 Jan 2005 22:28:06 +0100
Guy Harris schrieb:
Lars Roland wrote:

Guy Harris schrieb:

Is WINDIR set on 95/98/Me?


It is set on 98 and ME, I don't know, if it is set on Win95.
BTW, ADNS does *not* support Win95. Thus Ethereal doesn't support Win95 if built with ADNS, right?


Presumably - and I think the Windows version from the installer is built with ADNS, which would mean we don't support W95.

What happens if you try to use ADNS on W95? Crash? Addresses don't get resolved?

Unfortunately I don't have a Win95 system at hand right now. I just don't know what will happen.

(snip)


In either case, should it try both %WINDIR%\hosts and %WINDIR%\system32\drivers\etc\hosts, to handle both 95/98/Me and NT4/2K/XP/Server2K3, or should it base that on whether it's Windows OT (95/98/Me) or NT (NT4/2K/XP/Server2K3)?


I guess it is better to try both on any Windows.


That's what it's doing now - what's the advantage to that over calling GetVersionEx() and basing it on the dwPlatformId value?

Well, it is more or less a question of taste. It is probably cleaner to distinguish between NT and OT. I just think it isn't problematic to look at both locations, while it might be problematic to look at locations with fixed drive letters. ("c:" isn't necessarily the system drive. I don't know if it is possible, but perhaps someone could have a windows running with drive c being invalid. Who knows? )

Regards,
Lars