Solved

Q:How to judge OSR2 95 programmatically?

Posted on 1998-10-23
3
213 Views
Last Modified: 2010-04-02
I'm sorry for my bad English :-(
How can I judge a Windows 95 whether OSR2 one or a retail release version of Windows 95 programmatically?
0
Comment
Question by:ptiger
3 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 1175940
     OSVERSIONINFO osver;
      osver.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);

      DWORD ver = GetVersionEx(&osver);
      CString msg;
      msg.Format("%u.%u.%u", osver.dwMajorVersion, osver.dwMinorVersion, LOWORD(osver.dwBuildNumber));
      SetDlgItemText(IDC_VERSION, msg);
0
 

Author Comment

by:ptiger
ID: 1175941
Thanks your reply!
But can you tell me if the following Windows 95 is the OSR2 one or the retail release one?
a) 4.10.1691
b) 4.00.950
0
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 100 total points
ID: 1175942
4.00.950 is the first (retail) release of Win95. The other one will be OSR 2.
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question