Hi folks

I'm trying to write a proc for a dll that spits out the version information string in an argument to it. According to MSDN, the OSVERSIONINFOEX structure isn't available on WinNT SP5 or earlier. I want the proc to be able to retrieve and present info for all Windows versions including WINNT4 SP5 or earlier. Can someone suggest a way to do this. There's a C++ example in the MSDN library but it uses casting to check for the presence of OSVERSIONINFOEX, and if it isn't available the code switches to using the registry instead.

Thanks in advance for your help guys,

Posted on 2003-11-03 23:51:26 by art_sands

OSVERSIONINFOEX isn't available under win9x and before nt sp6 so use OSVERSIONINFO instead of OSVERSIONINFOEX (with GetVersionEx() also).

Posted on 2003-11-04 10:03:08 by hitchhikr
thanks h

i figured that out already. anyway. thanx again for your help. I will post the code here for testing after i finished writing it. I don't have NT4, win95, or win NT3.51 available for testing.

Posted on 2003-11-04 12:05:17 by art_sands