I don't believe you can override the function, however, you should be
able to set up a windows hook that will allow you to monitor all the
messages that are processed by the machine, and then selectively process the
ones that are targeted for the process in question.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Hi,
Is it possible to override MainWndProc using c# (for window in other
process).
No, cross process subclassing isn't possible (in any language, not a
C# limitation). That requires a hook or injecting code into the other
process some other way.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.