hi,

Im trying to use the GetVersionEx API to get the windows version. My question is how do I know if the OS is windows2000.


got this from http://www.vbapi.com:

if the return value is 0 then
Windows 3.x is running, using the Win32s pseudo-32-bit enhancements.

if the return value is 1 then
Windows 95 or 98 is running.

if the return value is 2 then
Windows NT is running.

When I tried this on a win2000 system the return value was 2.

Is that correct? and can I go ahead and work based on this return value???

Thanx in advance.