Detecting OS version on LAN computers

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: nicolasr (nicolasrNOSPAMATSIGNgmx.net)
Date: 03/30/04


Date: Wed, 31 Mar 2004 01:06:12 +0200

Hi,

I'm trying to detect the Windows version of computers in a LAN
using NetServerEnum(). This function returns a structure for each
computer that contains a platform ID. According to the SDK help
this ID can be one of the following:

PLATFORM_ID_DOS
PLATFORM_ID_OS2
PLATFORM_ID_NT
PLATFORM_ID_OSF
PLATFORM_ID_VMS

For a Win98 machine the returned ID is PLATFORM_ID_OS2.
I'm wondering whether this is how it's supposed to be??

I need to tell NT/2K/XP from 95/98/ME machines. Which IDs I
must check for?

Any comment welcome!
Nick



Relevant Pages

  • How I got interested in the Apple ][...
    ... my first exposure to personal computers (a.k.a. ... The school division that my little rural school was ... the Apple //e computers were what got me completely ... obsession with the A2 platform. ...
    (comp.sys.apple2)
  • Network Neighborhood
    ... is there easy way to get list of all computers on network? ... is windows98 ... ...
    (borland.public.delphi.nativeapi)
  • Re: Riscos Now
    ... I understand that AU does use another platform for the printer's file. ... retribution if I am) ... No problems with honest errors. ... reporting on computers & computing since 1982 ...
    (comp.sys.acorn.misc)
  • Re: Detecting OS version on LAN computers
    ... > I'm trying to detect the Windows version of computers in a LAN ... > using NetServerEnum(). ...
    (microsoft.public.win32.programmer.networks)
  • Re: Equivalent malloc with calloc
    ... Are there still computers made by Prime running somewhere? ... Since the standard makes no such guarantee, a new platform could come ... out tomorrow with null pointers having some representation other than ... about pointer representation will be able to port our code to the new ...
    (comp.lang.c)