|
|
От: | silentdash | |
| Дата: | 14.01.03 16:12 | ||
| Оценка: | |||
Ищите в Technical Articles \ Windows Platform \ Windows 2000 \ самый первый топикThe Windows 2000 API includes the function VerifyVersionInfo, this function compares a set of operating system version requirements to the corresponding values for the currently running version of the system. When a new version of the operating system is released, your application will still install and run on it. There are actually many more options and ways to use VerifyVersionInfo, but to check if the operating system is new enough you could call using the three flags below, and check the major version, the minor version, and the service pack. You would be saying "My application needs Windows NT® version 4.0, with SP 2, or greater" and then ask VerifyVersionInfo "Is this OS that I'm running on up to that standard?" It would return either a true or a false.
Below is an example of these flags:
VerifyVersionInfo(&osvi,
VER_MAJORVERSION |
VER_MINORVERSION |
VER_SERVICEPACKMAJOR,
dwlConditionMask);
VerifyVersionInfo, is only available on Windows 2000 and later versions of the platform.