with the RegEnumValue() function can I get both value name and value data, or just the value name, and then use RegQueryValueEx() to get the value data...
Because I'm trying to get the value data but I keep getting an empty string:
Code:
DWORD lnt=100;
LPBYTE value_name[100]={0}, value_data[100]={0};
if (RegEnumValue(reg_key, 0, value_name, &lnt, NULL, NULL, value_data, &lnt)!=ERROR_NO_MORE_ITEMS) {
MessageBox(hwnd, value_name, "", 0);
MessageBox(hwnd, value_data, "", 0);
}
The value_name returns fine, but the value_data is empty.
Please help, thank you.