vendredi 6 mars 2015

Can not get data from registry, After install update window


After installing Windows update KB3000850, I can write to the Registry OK:



#define SIZE 16383

actionaa = "0";
RegOpenKeyExA(HKEY_CURRENT_USER, "SOFTWARE\\Demo\\App\\Setting", 0, KEY_ALL_ACCESS | KEY_WOW64_64KEY, &hKey);
DWORD dwSize = lstrlen(actionaa) * sizeof(TCHAR);
NumOutput = RegSetValueEx(hKey, "Start", 0, REG_SZ, (unsigned char*)actionaa, dwSize);


But it is not possible to read from the Registry anymore:



char value[SIZE];
DWORD BufferSize = value[SIZE];
RegOpenKeyExA(HKEY_CURRENT_USER, "SOFTWARE\\Demo\\App\\Setting", 0, KEY_ALL_ACCESS | KEY_WOW64_64KEY, &hKey);
NumOutput = RegGetValue(hKey, 0, "Start", RRF_RT_REG_SZ, NULL, value, &BufferSize);


I tried this item in the multiple computers. All had the same problem Please help me




Aucun commentaire:

Enregistrer un commentaire