2009-01-19 43 views

回答

20
+0

而使用GetVersion [Ex]時,請記住檢查未來的版本號。例如,檢查XP和更高版本:major> 5 OR(major == 5 and minor> = 1) – Anders 2009-02-16 03:42:23

2

GetVersionEx已被棄用。我們需要使用Version Helper functions

+4

版本幫助器函數只是`VerifyVersionInfo()`的包裝器。請注意,Windows 8.1+上的GetVersion/Ex()和Windows 10+上的VerifyVersionInfo()會受到顯示的影響,因此**謊言應用程序**不表現爲聲明與Windows版本的顯式兼容性正在運行。要獲得沒有表現形式的* true * Windows版本,您需要使用`RtlGetVersion()`,`NetServerGetInfo()`或者`NetWkstaGetInfo()`來代替。 – 2016-03-25 15:05:00

相關問題