Redirect a method call

  • Thread starter Thread starter Ralph
  • Start date Start date
R

Ralph

Hi,

Does anybody know if it is possible to redirect a method call?
Let' say I want to call my own implementation of the message box each
time when somebody in my application calls the MessageBox.Show.
My application has many modules that are loaded dynamically
(Reflections). I want to redirect the method calls that are done in
such a module.

Thank you,

Ralph
 
Research on trampoline functions. It is a method of intercepting API
calls and redirecting them to another method while maintaining the
option to call the original method.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
 
Research on trampoline functions. It is a method of intercepting API
calls and redirecting them to another method while maintaining the
option to call the original method.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
 

Ask a Question

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.

Ask a Question

Back
Top