View Single Post
Old Mar 2nd, 2008, 12:12 AM   #15
KuraKai
Newbie
 
Join Date: Mar 2008
Posts: 25
Rep Power: 0 KuraKai is on a distinguished road
Re: RegQueryValue Issues

Alrighty then, at first adding that first resize doesn't make it work. However there was a secondary one that was needed.
c++ Syntax (Toggle Plain Text)
  1. while(RegEnumValue(myKey, index, szValueName, &dwValueNameSize, 0,
  2. &dwType, (byte *)szValueBuff, &dwValueBuffSize) == ERROR_SUCCESS)
  3. {
  4. cout << szValueName << " : " << szValueBuff << "\n";
  5. index++;
  6. dwValueNameSize = sizeof(szValueName);
  7. dwValueBuffSize = sizeof(szValueBuff);
  8. }
That one makes it work, I guess I saw the first one as pointless cause with or without it there was no further progress. But now that you mentioned that i guess the other one had to be resized also. That lists all of them with it.
KuraKai is offline   Reply With Quote