Click to See Complete Forum and Search --> : How can I intercept a win api calling?


May 13th, 1999, 09:05 PM
Hi All,

I need intercept a win api calling, sush as GetLocalTime, and post my own value.
Anybody can help me?

Elton

shellreef
May 13th, 1999, 09:12 PM
I don't know if that is possible...there might be a way to modify KERNEL32.DLL, USER.EXE, or GDI.EXE or whatever file contains the function, but that doesn't seem safe...

Or actually you might be able to revector the interrupt, whatever interrupt Windows uses, and then if it is a specific function, your own code could do stuff, otherwise the default code could be executed.

Maybe.

May 13th, 1999, 09:34 PM
I think you should write a API hook?