I need to read a registry key and any/all the MAIN subkeys below the main key.
So for example if the main key is say HKLM\SYSTEM\, then I need to be able to enumerate ControlSet001, ControlSet002, CurrentControlSet ....etc. It is not necessary that I read the subkeys of the subkey (ie I do not need to perform recursive enumeration).
As the keys are being enumerated, I would like to store the values into an array, so that I can then do a search in the array for a specific value. Ideas anybody?
So for example if the main key is say HKLM\SYSTEM\, then I need to be able to enumerate ControlSet001, ControlSet002, CurrentControlSet ....etc. It is not necessary that I read the subkeys of the subkey (ie I do not need to perform recursive enumeration).
As the keys are being enumerated, I would like to store the values into an array, so that I can then do a search in the array for a specific value. Ideas anybody?