Detecting the windows version running on your machine

As I said in the previous version of this article that as soon as the information about Windows 98 becomes available, I will update the files. Since Microsoft has updated the SDK documentation for Windows 98 OS information, I have modified the source code for exclusive detection for Windows 98.

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.

Download source - 37 KB



Comments

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Best-in-Class organizations execute on a strategy that supports the multi-channel nature of customer requests. These leading organizations do not just open up their service infrastructures to accommodate new channels, but also empower their teams to deliver an effective and consistent experience regardless of the channel selected by the customer. This document will highlight the key business capabilities that support a Best-in-Class customer engagement strategy.

  • Packaged application development teams frequently operate with limited testing environments due to time and labor constraints. By virtualizing the entire application stack, packaged application development teams can deliver business results faster, at higher quality, and with lower risk.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds