ReadProcessMemory()
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi! I'm writing an app that tries to capture OutputDebugString() messages from another app I've written. I propery get DEBUG_EVENTs from the other app and I make sure that I work with OUTPUT_DEBUG_STRING_EVENTs, but when I try to get the string data by calling ReadProcessMemory(), I get nothing but garbage. I've got a proper handle to the process, the pointer to the string data provided by the DEBUG_EVENT and a pointer to an appropriately sized data buffer to dump the data in, but like I said, I get nothing but garbage. I have no idea what to do. Does anybody have any idea? Steve The Plant