كيف جلب قائمة البرامج الي تشتغل مع بدء الجهاز StartUp Program
#2
PHP كود :
var
  
MyList: TStringList;
  
MyRegistry: TRegistry;
  
i: Integer;
  
Str: string; 

PHP كود :
MyRegistry:=TRegistry.Create;
  
MyList:=TStringList.Create;
  
with MyRegistry do
  
begin
    RootKey
:=HKEY_LOCAL_MACHINE;
    if 
OpenKey('Software\Microsoft\Windows\CurrentVersion\Uninstall',False)=True then GetKeyNames(MyList);
    
CloseKey;

    for 
i:=0 to MyList.Count-1 do
    
begin
      RootKey
:=HKEY_LOCAL_MACHINE;
      
OpenKey(
        
'Software\Microsoft\Windows\CurrentVersion\Uninstall\'+
        MyList[i], 
        False);
      Str:=ReadString('
DisplayName');
      if Str<>'' then
        sListBox1.Items.Add(ReadString('
DisplayName'));
      CloseKey;
    end;
    sStatusBar1.Panels[0].Text:='
You have : '+IntToStr(MyList.Count) +' Program installed !'
  end; 
الرد


الردود في هذا الموضوع
كيف جلب قائمة البرامج الي تشتغل مع بدء الجهاز StartUp Program - بواسطة onexite - 10-06-2012, 11:28 AM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم