Home All Groups Group Topic Archive Search About

Redirect a method call

Author
27 Oct 2006 1:27 PM
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

Author
27 Oct 2006 9:57 PM
Bryan Phillips
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




Show quote
"Ralph" <gduru2***@yahoo.de> wrote in message
news:1161955655.563654.262590@e3g2000cwe.googlegroups.com:

> 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
Author
29 Oct 2006 4:56 PM
Bryan Phillips
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




Show quote
"Ralph" <gduru2***@yahoo.de> wrote in message
news:1161955655.563654.262590@e3g2000cwe.googlegroups.com:

> 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

AddThis Social Bookmark Button