The Windows API has functions like GetWindowTextW
that read a string into a buffer you provide. How do I provide such a buffer and then read a string from it in Rust?
P.S. In contrast to this question Calling the GetUserName WinAPI function with a mutable string doesn't populate the string this question focuses on string reading on Windows in general, and not a particular problem. Also, this question will hopefully be easily googled by keywords, answering what was asked for.