HEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\Media 下有声卡的型号
所以只需要读出注册表就行了
var reg:Treginifile;
s:string;
begin
reg:=treginifile.create('');
reg.rootkey:=HEY_LOCAL_MACHINE;
s:=get.readstring('System\CurrentControlSet\Services\Class\Media\0000 ',
'DriverDesc','');\\字符串s中就是声卡的型号
reg.close;
end;
所以只需要读出注册表就行了
var reg:Treginifile;
s:string;
begin
reg:=treginifile.create('');
reg.rootkey:=HEY_LOCAL_MACHINE;
s:=get.readstring('System\CurrentControlSet\Services\Class\Media\0000 ',
'DriverDesc','');\\字符串s中就是声卡的型号
reg.close;
end;
不好意思,前段时间没空,才看到……[email protected]
呵呵,好像也是哦,一个想法而已。那看来就只有采用通过注册表备份记录了。