RegCloseKey(hTestKey); system("pause");}[/code]how can i modify the function void QueryKey(HKEY hKey) to return registry key values and subvalues and list/print them in void __cdecl _tmain(void) functionthanks a lot