Beginner c++ developer, here. I'm writing a program Under Windows10 with Character set = Use Unicode Character Set in the properties tab.
I'm trying to use an API to returns a _UNICODE_STRING (winternl.h). I need to convert it to a std::string, and after having spent a lot of time, don't find my way around. All I found here is this question, which doesn't seems to help, since it targets a very specific context.
Of course I realize there are a lot of things I should learn before becoming comfortable with strings in C++ (I come from C#), and I have selected a few articles for further reading, but I was hoping I could use this day to move forward with the program I'm trying to write.
So, is there a way to perform the needed conversion? Sorry if the answer is obvious, thanks a million if you can help!