API?CPU?内存?你可知,50? http://www.csdn.net/expert/topic/111/111286.shtm 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 GlobalMemoryStatus、GetSystemInfo等,查Windows API procedure TForm1.Button1Click(Sender: TObject);var systeminfo: SYSTEM_INFO; memory: MEMORYSTATUS;begin Memo1.Lines.Clear(); //获得CPU型号 GetSystemInfo(systeminfo); Memo1.Lines.Add('您的CPU类型是:' + inttostr(systeminfo.dwProcessorType)); //获得内存状态 memory.dwLength := sizeof(memory); //初始化 GlobalMemoryStatus(memory); Memo1.Lines.Add('您的物理内存是(' + inttostr(integer(memory.dwTotalPhys div 1024 div 1024)) + 'MB)。'); Memo1.Lines.Add('其中可用内存是(' + inttostr(integer(memory.dwTotalPhys div 1024)) + 'KB)。');end; 直接运行 windows 的系统工具下的系统信息;procedure TForm1.Button1Click(Sender: TObject);begin// Shellexecute(handle,'open',C:\Program Files\Common Files\Microsoft Shared\MSINFO\MSINFO32.EXE',nil,nil,SW_SHOWNORMAL); winexec('C:\Program Files\Common Files\Microsoft Shared\MSINFO\MSINFO32.EXE',SW_ShowNormal);end; ShellAbout(Self.Handle,'MyAPP','This is My Tips',Self.Icon.Handle); Shellexecute怎样调用相对路径下的执行文件? 下班了,不管你们散不散,反正我要散 辩认真假 高分请求解答:调用DLL窗体的问题,数据库操作 Delphi 中如何定义自定义事件? 两个表之间的复杂操作问题! 调用C++Builder的Dll报错找不到入口地址(请高手解决) ●●○○有没有更快的方法?○○●● 打开窗体时如何传入一个参数 如何在DBgrid里对某一行设置颜色。 请问有控件能显示.doc文件的吗?.pdf的又有吗?只是显示. QuickRep中用其他Form的DataSet,可以显示数据,但是不能用MAX,SUM等 对于高手来说,很简单的问题
var
systeminfo: SYSTEM_INFO;
memory: MEMORYSTATUS;
begin
Memo1.Lines.Clear();
//获得CPU型号
GetSystemInfo(systeminfo);
Memo1.Lines.Add('您的CPU类型是:' + inttostr(systeminfo.dwProcessorType)); //获得内存状态
memory.dwLength := sizeof(memory); //初始化
GlobalMemoryStatus(memory);
Memo1.Lines.Add('您的物理内存是(' + inttostr(integer(memory.dwTotalPhys div 1024 div 1024)) + 'MB)。');
Memo1.Lines.Add('其中可用内存是(' + inttostr(integer(memory.dwTotalPhys div 1024)) + 'KB)。');end;
begin
// Shellexecute(handle,'open',C:\Program Files\Common Files\Microsoft Shared\MSINFO\MSINFO32.EXE',nil,nil,SW_SHOWNORMAL);
winexec('C:\Program Files\Common Files\Microsoft Shared\MSINFO\MSINFO32.EXE',SW_ShowNormal);
end;