How do I convert LPBYTE into char * or string? Specifically, I am calling EnumPrinterDataEx(), and taking the pData out of it, and want to convert that. When I try to convert using wcstombs(), it only gives the first character from the pData. But I wanted to know how the conversion can be done in general.
Thanks
Edit: After getting the pData, I made a new variable of LPWSTR and then converted this into a char * using wcstombs, and it all worked well. Thanks!