Q:How to judge OSR2 95 programmatically?

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?
ptigerAsked:
Who is Participating?
 
rwilson032697Connect With a Mentor Commented:
4.00.950 is the first (retail) release of Win95. The other one will be OSR 2.
0
 
jhanceCommented:
     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
 
ptigerAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.