procedure TForm1.GetSysInfo;
var
PlatForm:String;
BuildNumber:Integer;
begin
case Win32PlatForm of
VER_PLATFORM_WIN32_WINDOWS:
begin
PlatForm:='Windows 98';
BuildNumber:=Win32BuildNumber and $0000FFFF;
end;
VER_PLATFORM_WIN32_NT:
begin
PlatForm:='Windows NT';
BuildNumber:=Win32BuildNumber;
end
else
begin
PlatForm:='Windows';
BuildNumber:=0;
end;
end;
if (Win32PlatForm = VER_PLATFORM_WIN32_WINDOWS) or (Win32PlatForm = VER_PLATFORM_WIN32_NT) then
begin
if Win32CSDVersion = '' then
lblSystem.Caption:=Format('%s %d.%d(Build %d)',[PlatForm,Win32MajorVersion,Win32MinorVersion,BuildNumber])
else
lblSystem.Caption:=Format('%s %d.%d(Build %d:%s)',[PlatForm,Win32MajorVersion,Win32MinorVersion,BuildNumber,Win32CSDVersion]);
end
else
lblSystem.Caption:=Format('%s %d.%d',[PlatForm,Win32MajorVersion,Win32MinorVersion]);
end;