Detecting the windows version running on your machine
Posted
by Naveen K Kohli
on February 8th, 1999
The following modification has been made for checking the major and minor version of OS.
if ((versionInfo.dwMajorVersion > 4) || ((versionInfo.dwMajorVersion == 4) && (versionInfo.dwMinorVersion > 0))) {
m_stInfo = _T ("Windows 98");
}
Otherwise the rest of code remains the same. In the next update I will try to add detection for Windows NT 5.0. With the release of beta version most of the information is available.

Comments