listing subkeys and values
Posted: Fri Mar 06, 2009 10:01 am
hi, here i am once again to ask, how do i retrieve the list of subkeys and values inside a registry key?
e.g.
i wanna know the subkeys and the values of under the registry key HKEY_LOCAL_MACHINE\Software\Microsoft
what code does it best aside from using the one i made up below:
this could be really slow if my program is to wait for reg.exe to finish first.. so what i wanna do is get the subkeys and values without using the code above... if anyone has an idea, let's hear it.. 
------------------
also as an addition, i wanna know what's the script to find the handler of a process just in case it is still in use and it can't be deleted...
thanks ^^
e.g.
i wanna know the subkeys and the values of under the registry key HKEY_LOCAL_MACHINE\Software\Microsoft
what code does it best aside from using the one i made up below:
Code: Select all
reg query "HKLM\Software\Microsoft" /s

------------------
also as an addition, i wanna know what's the script to find the handler of a process just in case it is still in use and it can't be deleted...
thanks ^^