inline void chWindows9xNotAllowed() {
OSVERSIONINFO vi = { sizeof(vi) };
GetVersionEx(&vi);
if (vi.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) {
chMB("This application requires features not present in Windows 9x.");
ExitProcess(0);
}
}
OSVERSIONINFO vi = { sizeof(vi) };
GetVersionEx(&vi);
if (vi.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) {
chMB("This application requires features not present in Windows 9x.");
ExitProcess(0);
}
}
博客代码展示了一个函数chWindows9xNotAllowed,用于检查系统版本。若系统为Windows 9x,会弹出提示框表明应用程序所需特性该系统不具备,并退出进程,体现了应用对系统版本的要求。

2182

被折叠的 条评论
为什么被折叠?



