DWORD LDR_RegEnumKey(HKEY hKey, DWORD iSubKey, LPSTR lpszBuffer, DWORD cbBuffer)
Enumerates the subkeys of a given registry key.
hKey
Handle of a previously opened key or is the HKEY_LOCAL_MACHINE key.
iSubKey
Index of the subkey to retrieve. This should be zero for the first call to this API.
lpszBuffer
Address of a buffer that receives the name of the subkey.
cbBuffer
Specifies the size, in bytes, of lpszBuffer.
The virtual device should initially set the iSubKey to zero, then increment it on successive calls.