宁柯 真是作了回好人!
function SystemVersion: DWORD;
var
FVersion : _OSVERSIONINFOA;//可以看MsDn
begin
FVersion.dwOSVersionInfoSize := SizeOf(_OSVERSIONINFOA);
GetVersionEx(FVersion);
Result := FVersion.dwMajorVersion;
end;
dwMajorVersion = 5 2K, XP(再根据OSVERSIONINFOA的其他来判断)
= 4 98,95 ME
看MSDN你就知道了