uses Windows, Registry;
procedure RemoveEmbarcaderoRadStudios2010AutoUpdate;
var Reg: TRegistry; begin
Reg := TRegistry.Create;
try
Reg.RootKey := HKEY_CURRENT_USER;
if Reg.OpenKey( '\Software\CodeGear\BDS\7.0\AutoRun\UpdateCheck', True ) then
Reg.WriteString('ProgramToRun', '')
else
ShowMessage('Registry entry not found');
Reg.CloseKey;
finally
Reg.Free;
end;
end;
uses System.SysUtils, System.Types, System.UITypes, System.Rtti, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.Layouts, FMX.Memo, FMX.Media; type TForm3 = class(TForm) Button1: TButton; Memo1: TMemo; Label1: TLabel; Button2: TButton; Label2: TLabel; Memo2: TMemo; procedure Button1Click(Sender: TObject); private { Private declarations } NumberOfDevices : integer; public { Public declarations } end; implementation {$R *.fmx} uses System.TypInfo; procedure TForm3.Button1Click(Sender: TObject); var i : integer; begin // get the number of audio and video capture devices - if any NumberofDevices := TCaptureDeviceManager.Current.Count; Label1.Text := 'Devices: '+IntToStr(NumberOfDevices); Memo1.Lines.Clear; // for each capture device, display the index, name, media type and the state for i := 0 to NumberOfDevices-1 do begin Memo1.Lines.Add( IntToStr(i) + ': "' + TCaptureDeviceManager.Current.Devices[i].Name + '", Type: ' + GetEnumName(System.TypeInfo(TMediaType), Ord(TCaptureDeviceManager.Current.Devices[i].MediaType)) + ', State: ' + GetEnumName(System.TypeInfo(TCaptureDeviceState), Ord(TCaptureDeviceManager.Current.Devices[i].State)) ); end; end;