hi - i need a function that returns true if the user is using a windows server OS
thanks in advance
Kris Bennett
Printable View
hi - i need a function that returns true if the user is using a windows server OS
thanks in advance
Kris Bennett
After a quick search...
http://www.vbforums.com/showthread.php?t=300465 - 5.2 should be Server 2003
http://www.vbforums.com/showthread.p...14#post1263414
ok.... but both of these posts dont differienciate between windows 2000 and windows 2000 server
also - i want the function to work out if it is a Server OS for future releases of server also - is this possible?
thanks kris
First link and it does
os.dwMajorVersion = 5
os.dwMinorVersion = 2
= 5.2 Server 2003
No way to tell future versions. You need to update as they come out.
i said between windows 2000 and windows 2000 server
- server 2003 works fine , but server 2000 is the same as 2000 std
That would be "os.dwMinorVersion = 0" as shown in the code. All the latest OS versions are supported in that code. It works. Have you tryied it?