改成这样看看:<br>var<br> reg:HKEY;<br> size:integer;<br> info:AnsiString;<br>begin<br> size:=MAX_PATH;<br> SetLength(info,MAX_PATH+1); <br> RegOpenKeyEx(HKEY_LOCAL_MACHINE,PChar('HARDWARE/DESCRIPTION/System/CentralProcessor/0'),0,KEY_QUERY_VALUE,reg);<br> RegQueryValueEx(reg,PChar('ProcessorNameString'),nil,nil,Pbyte(info),@Size);<br> Result:=copy(info,1,size-1);<br> RegCloseKey(reg);<br>end;