here is my code:
TCHAR name[MAX_PATH];
DWORD size;
BYTE name2[MAX_PATH];
DWORD size2;
int i = 0;
while(RegEnumValue(Hkey , i , name , &size , 0 , NULL , name2 , &size2) != ERROR_NO_MORE_ITEMS)
{
cout << "Value name: " << name << "---" << "Data name: " << name2 << endl;
i++;
size = sizeof(name);
size2 = sizeof(name2);
the problem is that is printing the values,but not the data they are containing....something like:
Value name: ColorTable01---Data name:
Value name: ColorTable02---Data name:
Value name: ColorTable03---Data name:
Value name: ColorTable04---Data name: €
Value name: ColorTable05---Data name: €
Value name: ColorTable06---Data name: €€
Value name: ColorTable07---Data name: ŔŔŔ
Value name: ColorTable08---Data name: €€€