Is there a way to make a program that reads another programs cases?
Thanks, August
Is there a way to make a program that reads another programs cases?
Thanks, August
If you're talking about switch-case statements, I don't think so. When your program is compiled, all your control structures are just converted to jump operations in the binary (.exe).
If you're talking about intercepting WM_XXX messages from a window's window procedure, you can use a program like winspector or winspy++.
You where right the second guess, and I have WinSpy++ already, and I can allready activate a programs WM statement, I just want to be read all of the WM statements that are in that program. Could I do that?
You wouldn't really be able to find out how the program handles them, no. As Dante has said, when you compile a program all code statements are translated into equivalent machine code, with a modern optimising compiler there isn't usually a 1:1 correlation between machine code fragments and code fragments, so you'd have to just disassemble from the start of the WindowProc function.
In other words, unless you're prepared to spend months designing and coding a mechanism to do this, no.