I was in need of a function to enumerate registry keys including all sub-keys and couldn't find one...
#include<Array.au3>
$aResult = _EnumRegKeys2Array("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run")
_ArrayDisplay($aResult)
$aResult = _EnumRegKeys2Array("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall")
_ArrayDisplay($aResult)
;===============================================================================
;
; Function Name: _EnumRegKey