i am working on to extract registry value of type REG_SZ and use it as a character array i have tried taking input in byte* buffer but further not able to get it in char array .
BYTE* buffer = new BYTE[cbMaxValueData];
ZeroMemory(buffer, cbMaxValueData);
buffer[0] = '\0';
LONG dwRes = RegQueryValueEx(hKey, oem_name, 0, NULL, buffer, &lpData);
_tprintf(TEXT("(%d) %s: %s\n"), i+1, oem_name, buffer);
what i want is to extract each character of buffer but i dont find any way : PS: value in my registry key is of REG_SZ type
basically if someone could help me in converting BYTE* buffer to char* var or string str then too it will solve my issue