This function returns the name of a subkey in the currently opened key. This is used to enumerate subkeys of an opened key. You must first make a call to EnumKeyInit before using this function.
EnumKeyGet (KeyIndex As Long, KeyName As String) As Long
Parameters
KeyIndex
[in] Index of the subkey name to retrieve. Index goes from 1 to KeyCount.
KeyName
[out] Return the name of the subkey.
Return Value
0: success
1: failed
2: invalid index