首页 > 代码库 > 获取windows版本信息

获取windows版本信息





procedure TForm1.Button1Click(Sender: TObject);
Var
    OSVI:OSVERSIONINFO;
begin
    OSVI.dwOSversioninfoSize:=Sizeof(OSVERSIONINFO);
    GetVersionEx(OSVI);

    Caption:=IntToStr(OSVI.dwMinorVersion)+‘,‘
    +IntToStr(OSVI.dwMinorVersion)+‘,‘
    +IntToStr(OSVI.dwBuildNumber)+‘,‘
    +IntToStr(OSVI.dwPlatformId)+‘,‘
    +OSVI.szCSDVersion;
end;


来自为知笔记(Wiz)