获得当前操作系统的版本.
#Include <WinAPIEx.au3>
_WinAPI_GetVersion ( )
| None. |
| 成功: | 返回包含当前 OS 版本的字符串. |
| "6.1" - Windows 7 / Windows Server 2008 R2 | |
| "6.0" - Windows Server 2008 / Windows Vista | |
| "5.2" - Windows Server 2003 R2 / Windows Home Server / Windows Server 2003 / Windows XP Professional x64 Edition | |
| "5.1" - Windows XP | |
| "5.0" - Windows 2000 | |
| 失败: | 返回空字符串,设置 @error 标志为非 0 值. |
#Include <WinAPIEx.au3>
ConsoleWrite('Windows version: ' & _WinAPI_GetVersion() & @CR)