_RegEnumKey


DWORD _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 one of the predefined root keys given in Predefined Keys.

iSubKey

Index of the subkey to retrieve. This should be zero for the first call to this service.

lpszBuffer

Address of a buffer that receives the name of the subkey.

cbBuffer

Size, in bytes, of the lpszBuffer buffer.

The virtual device should initially set iSubKey to zero, then increment it on successive calls.