I am looking to obtain help in writing a function that will take an incoming variable (registry key) and write to a log file the strings and values within the key prior to deleting it. I am fairly sure using an array would be the best method along with use of the RegEnumKey and RegEnumVal functions. I am really unsure of how to put these commands together in a loop to populate said array. Then use that array to perform the tasks required. That said, the current implemenation also contains no