System Delphi

uses Registry;
function HasCDRecorder: Boolean;
var
reg: TRegistry;
begin
reg := TRegistry.Create;
try
reg.RootKey := HKEY_CURRENT_USER;
reg.OpenKey('Software\Microsoft\Windows\CurrentVersion\Explorer\CD Burning', False);
Result := reg.ValueExists('CD Recorder Drive');
reg.CloseKey;
finally
reg.Free;
end;
end;
// Example:
procedure TForm1.Button1Click(Sender: TObject);
begin
if HasCDRecorder then
ShowMessage('CD-Recorder Var.')
else
ShowMessage('CD-Recorder Yok.');
end;
Gelenek...