Just another Developer Network site Converting Win32 API results to std::wstring (or std::string) Hmm. Just realized that this is a bit out of order and should have been published before the... Author: Larry Osterman [MSFT] Date: 11/24/2015 ExpandEnvironmentStringsA returns a different required buffer length than ExpandEnvironmentStringsW I was writing some ANSI-only code the other day to handle t