void open_key(HKEY* Key , HKEY key , LPCTSTR subkey)
{
cout << Key[1] << endl;
RegOpenKeyEx(Key[1] , subkey , 0 , KEY_ENUMERATE_SUB_KEYS | KEY_QUERY_VALUE , &key);
}
int main()
{
HKEY keys[] = {HKEY_CLASSES_ROOT , HKEY_CURRENT_USER , HKEY_LOCAL_MACHINE , HKEY_USERS , HKEY_CURRENT_CONFIG};
open_key(&keys[1] , hkey , "Software");
}
how can i print Key[1] so that its show HKEY_CURRENT_USER ?
now it just prints: 0x80000002