Link to home
Start Free TrialLog in
Avatar of ptiger
ptiger

asked on

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?
Avatar of jhance
jhance

     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);
Avatar of ptiger

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of rwilson032697
rwilson032697

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial