Delphi-Quellcode:
CMD.RootKey:= HKEY_CURRENT_USER;
CMD.OpenKey('
Software', true);
// HKCU\Software
CMD.OpenKey('
Software\Policies', true);
// HKCU\Software\Software\Policies
CMD.OpenKey('
Software\Policies\Microsoft', true);
// HKCU\Software\Software\Policies\Software\Policies\Microsoft
CMD.OpenKey('
Software\Policies\Microsoft\Windows', true);
// HKCU\Software\Software\Policies\Software\Policies\Microsoft\Software\Policies\Microsoft\Windows
CMD.OpenKey('
Software\Policies\Microsoft\Windows\System', true);
// HKCU\Software\Software\Policies\Software\Policies\Microsoft\Software\Policies\Microsoft\Windows\Software\Policies\Microsoft\Windows\System
Das geht so?
OpenKey arbeitet doch rekursiv? (wenn man kein "\" am Pfadanfang angibt)