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

  • It's time high-level executives and IT compliance officers recognize and acknowledge the danger of malicious insiders, an increased attack surface and the potential for breaches caused by employee error or negligence. See why there is extra emphasis on insider threats.

  • A help desk is critical to the operations of an IT services business. As a centralized intake location for technical issues, it allows for a responsive and timely solution to get clients and their staff back to business as usual. In addition to handling immediate IT issues, a help desk performs several proactive tasks to ensure clients' IT systems remain operational and downtime is minimized. Thus, utilizing a help desk and following best practices can improve the productivity, efficiency and satisfaction of …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds