up者有分!有关win2000注册表!能解决者可另加分!
foxmx 2003-10-10 10:31:36 为什么win2000下的HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum下的主键不能读出来?保护么?请看如下代码: 主键名根本读不出来!
Var list1:TStringList;
Reg :TRegistry;
FPath,FKey:String;
begin
FPath := 'SYSTEM\CurrentControlSet\Enum';
list1 := TStringList.Create;
Reg := TRegistry.Create;
Reg.RootKey := HKEY_LOCAL_MACHINE;
If Reg.OpenKey(FPath, False) then
Reg.GetKeyNames(List1);
.......
end;
谁能帮我读出来?