Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1470

OS Version information class

$
0
0
WinAPI based.

Can show such information, like:

OS Name: Windows 7
Service Pack ver.: 1
Bitness: x64
Edition: Ultimate
Family: Vista
Suite mask: SingleUserTS
ProductType: Workstation
OS - Vista or newer? True
Major: 6
Minor: 1
Major + Minor: 6,1
Build: 7601
ReleaseId: 0
Language in dialogues: 1049 RU Russian
Language of OS inslallation: 1049 RU Russian
Language for non-Unicode programs: 1049 RU Russian
Process integrity level: Medium
Elevated process? False
User group: Administrator
Safe boot? False (Normal)
OEM Codepage: 866 (c_866.nls)
ANSI Codepage: 1251 (c_1251.nls)

You should add manifest with compatiblity section in your program to properly handle version of Windows 8.1 and higher (included in example attached).
If program run from IDE, Win version will be extracted via WMI, so IDE-mode doesn't depend on the manifest.
Attached Files

Viewing all articles
Browse latest Browse all 1470

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>