怎么样才能显示系统盘(windows安装目录所在磁盘)的总空间?我用getwindowsdirectory和getdiskfreespace两个api试了很久都不对(在xp下正常,但98下面就不对了)。代码为:var windir:array [0..255] of char; c2,c3,c4,c5:dword;GetWindowsDirectory(windir,255); getdiskfreespace(windir,c2,c3,c4,c5); label1.caption:='系统盘容量: '+inttostr(c5*c2*c3 div 1024 div 1024)+'MB'+' '+inttostr(c4*c2*c3 div 1024 div 1024)+'MB 可用';谁有windows所有的版本号,可以共享一下吗?以及cpu类型判断数据库.
www.51delphi.com
www.playicq.com下载
c2,c3,c4,c5:dword;GetWindowsDirectory(windir,255);
getdiskfreespace(windir,c2,c3,c4,c5);
label1.caption:='系统盘容量: '+inttostr(c5*c2*c3 div 1024 div 1024)+'MB'+' '+inttostr(c4*c2*c3 div 1024 div 1024)+'MB 可用';谁有windows所有的版本号,可以共享一下吗?以及cpu类型判断数据库.