RegEnumKeyEx The RegEnumKeyEx function enumerates subkeys of the specified open registry key. The function retrieves information about one subkey each time it is called. Unlike the RegEnumKey function, RegEnumKeyEx retrieves the class name of the subkey and the time it was last modified. LONG RegEnumKeyEx( HKEY hKey, // handle to key to enumerate DWORD dwIndex, // subkey index LPTSTR lpName, // subkey name LPDWORD lpcName, // size of subkey buffer LPDWORD lpReserved, // reserved LPTSTR lpClass, // class string buffer LPDWORD lpcClass, // size of class string buffer PFILETIME lpftLastWriteTime // last write time );
&dwIndex,
NULL,NULL,NULL, NULL,NULL,NULL, NULL);
dwIndex中就是它的键的个数然后一个一个的找下去就是了。
The RegEnumKeyEx function enumerates subkeys of the specified open registry key. The function retrieves information about one subkey each time it is called. Unlike the RegEnumKey function, RegEnumKeyEx retrieves the class name of the subkey and the time it was last modified. LONG RegEnumKeyEx(
HKEY hKey, // handle to key to enumerate
DWORD dwIndex, // subkey index
LPTSTR lpName, // subkey name
LPDWORD lpcName, // size of subkey buffer
LPDWORD lpReserved, // reserved
LPTSTR lpClass, // class string buffer
LPDWORD lpcClass, // size of class string buffer
PFILETIME lpftLastWriteTime // last write time
);
不包含子键的话,就是RegEnumKeyEx