如何取得当前的机器名与公司名? 就是,打开我的电脑,帮助/关于 那界面上出现的。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 var CNameBuffer : PChar; fl_loaded : Boolean; CLen : ^DWord;begin GetMem(CNameBuffer,255); New(CLen); CLen^:= 255; fl_loaded := GetComputerName(CNameBuffer,CLen^); if fl_loaded then ComputerName := StrPas(CNameBuffer) else ComputerName := 'Unkown'; FreeMem(CNameBuffer,255); Dispose(CLen);end; var ComputerName: PChar; Size: DWORD;begin GetMem(ComputerName,255); Size:=255; GetComputerName(ComputerName,Size); ShowMessage('计算机名:'+ComputerName);end; 在注册表中HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\...每个键下的InstallProperties差不多都会有RegCompany键,键值就是你的公司名称 公司名HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RegisteredOrganization或者HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\RegisteredOrganization键值 网络上两台电脑互拷文件 十万火急!!!!!!!!!!!! Reset(TF); 用过Asuo二维绘图控件同仁请进! 急,邮件发送的小问题!!! 如何读取字段名? 代替的全路径的一条语句~~~ 关于 pascal 的一个算法问题? delphi 中BDE如何跟DELPHI连接,并且与数据库如何连接???在线等。。。。。。 在DELPHI中开发DLL的步聚应该怎样? TChromium使用问题 送分题。关于输入数据格式。 我想做一個程序長住內存,可以監聽到鍵盤事件,謝謝!
CNameBuffer : PChar;
fl_loaded : Boolean;
CLen : ^DWord;begin GetMem(CNameBuffer,255);
New(CLen);
CLen^:= 255; fl_loaded := GetComputerName(CNameBuffer,CLen^); if fl_loaded then
ComputerName := StrPas(CNameBuffer)
else
ComputerName := 'Unkown'; FreeMem(CNameBuffer,255);
Dispose(CLen);end;
ComputerName: PChar;
Size: DWORD;
begin
GetMem(ComputerName,255);
Size:=255;
GetComputerName(ComputerName,Size);
ShowMessage('计算机名:'+ComputerName);
end;
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\...
每个键下的InstallProperties差不多都会有RegCompany键,键值就是你的公司名称
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RegisteredOrganization
或者
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\RegisteredOrganization
键值