TJK, you could, for the while being, identify Windows 7 by checking both WindowsServerName and WindowsVersion.
The WindowsVersion would report 6.1 for Windows7/Windows Server 2008 R2.
The WindowsServerName would be blank for Windows 7 & filled in for Windows Server 2008 R2.
I have included the modifications for Windows 7/Windows Server 2008 R2 and compiled it with Visual C++ 2008 Express, which resulted in the DLL being 21kB! Here is the dll & modified source: http://www.mediafire.com/?sharekey=9...4e75f6e8ebb871
I haven't tested it for Vista & Windows 7 yet.
A friend of mine got the following error when he used my dll in Win7 x64
"Could not load: C:\Users\ludwig\AppData\Local\Temp\nszCDEE.tmp\GetVersion.dll"
I guess it has to do with .NetFX.