Detecting windows variants
Hi,
I am trying to figure out what variant of windows I am running and the GetWindowsVersion and others don't seem to do the job when trying to find out whether I am running Windows NT 4 Terminal Server, or Windows NT4 Server, or Windows NT Workstation. I have been searching on MSDN to see if there is any information on how to do this, but I can't seem to locate it.
Is anyone out there doing this?
The basic idea of what I am trying to do is detect the following versions:
Server 2003
Server 2003-64
XP
XP-64
2000
NT4 Server
NT4 Workstation
NT4 Terminal Server
WIN9x (I don't care which)
I don't have any choice because the packages I am trying to install are made for these and give no concrete dependencies that I can match on like dll versions.