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

  • Learn How A Global Entertainment Company Saw a 448% ROI Every business today uses software to manage systems, deliver products, and empower employees to do their jobs. But software inevitably breaks, and when it does, businesses lose money -- in the form of dissatisfied customers, missed SLAs or lost productivity. PagerDuty, an operations performance platform, solves this problem by helping operations engineers and developers more effectively manage and resolve incidents across a company's global operations. …

  • Today's agile organizations pose operations teams with a tremendous challenge: to deploy new releases to production immediately after development and testing is completed. To ensure that applications are deployed successfully, an automatic and transparent process is required. We refer to this process as Zero Touch Deployment™. This white paper reviews two approaches to Zero Touch Deployment--a script-based solution and a release automation platform. The article discusses how each can solve the key …

Most Popular Programming Stories

More for Developers

RSS Feeds