Reflective DLL Injection is one of the most interesting and best techniques to run custom code in memory. I've been learning about it a lot, I've learned how to pass in inputs, But I can't figure out how to read in the output? I'm using C++.
The metasploit framework is able to get the output of the reflective dll, https://github.com/rapid7/metasploit-framework/blob/master/modules/post/windows/manage/reflective_dll_inject.rb
But how can I do this in C/C++?