var
; MyVerInfo: TOSVersionInfo; ; ;// holds version information
begin
; {set the size member of the TOSVersionInfo structure}
; MyVerInfo.dwOSVersionInfoSize := SizeOf(TOSVersionInfo);
; {retrieve the operating system version information}
; GetVersionEx(MyVerInfo);
; {display the operating system version information}
; Panel2.Caption := IntToStr(MyVerInfo.dwMajorVersion);