如何查看系统的启动项目并终止(请写出原码)
解决方案 »
- 在DBGIRD中加入一列序号
- delphi控制execl单元合并的问题
- 如何将数据导到word打印
- 【百分相赠】如何让控件的显示能超过主窗口?主窗口的高度可以只有一点点,但控件的高度允许超出窗口下方,如何实现,请给个方案吧,谢谢
- 写流文件问题
- FastReport問題
- 请教FASTREPORT的frPrintGrid1打印DBGRID的用法,对了,谁有FASTREPORT的电子书,给我一份,E-MAIL:UV
- for循环急问
- 关于Delphi中多线程传递参数的简单问题
- 非常问题,在线等~~~
- li3365请来拿分.
- 在线等待,马上结帐 sql server查询两表所有值的问题,很简单,但没有找到答案
var
reg : TRegistry;
subreg: TStrings;
t : TListItem;
begin
subreg := TStringList.Create;
Reg := TRegistry.Create;
Reg.RootKey := HKEY_CURRENT_USER;
if Reg.OpenKey('\Software\Microsoft\Windows\CurrentVersion\Run',False)
then begin
Reg.GetValueNames(subreg);
for i:=0 to subreg.Count-1 do
begin
t := ListView1.Items.Add;
t.Caption := Reg.ReadString(subreg.Strings[i]);
t.SubItems.Add('注册表->HKEY_CURRENT_USER->Run');
end;
end; if Reg.OpenKey('\Software\Microsoft\Windows\CurrentVersion\RunServices',False)
then begin
Reg.GetValueNames(subreg);
for i:=0 to subreg.Count-1 do
begin
t := ListView2.Items.Add;
t.Caption := Reg.ReadString(subreg.Strings[i]);
t.SubItems.Add('注册表->HKEY_CURRENT_USER->RunServices');
end;
end; Reg.RootKey := HKEY_LOCAL_MACHINE;
if Reg.OpenKey('\Software\Microsoft\Windows\CurrentVersion\Run',False)
then begin
Reg.GetValueNames(subreg);
for i:=0 to subreg.Count-1 do
begin
t := ListView1.Items.Add;
t.Caption := Reg.ReadString(subreg.Strings[i]);
t.SubItems.Add('注册表->HKEY_LOCAL_MACHINE->Run');
end;
end; if Reg.OpenKey('\Software\Microsoft\Windows\CurrentVersion\RunServices',False)
then begin
Reg.GetValueNames(subreg);
for i:=0 to subreg.Count-1 do
begin
t := ListView1.Items.Add;
t.Caption := Reg.ReadString(subreg.Strings[i]);
t.SubItems.Add('注册表->HKEY_LOCAL_MACHINE->RunServices');
end;
end;
end;
你说的终止我不明白是什么意思,终止什么?