Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Hooking Symbian OS API

3 replies · 2,661 views · Started 19 August 2005

Hello All,

I want to log the API calls that an application is making. Is there any way to hook the API? So that my logging code could be executed before making actual API call. Any help/meterial about this will be highly appreciated.

Thanks,
Ali Sheharyar

Hi,
You cannot hook os calls but check for events that may interest you,like
when some number is dialled or a call is recived etc..
Bye.
--eminemence

Hi eminemence,

Thanks for replying. I actually want to monitor the application for actions like

- what files are currently opened by the application
- how much is the memory/CPU consumption by the app
- send fake (pre-recorded) keypad/pen events (like macro).

I'd appreciate if you could guide me how to do the above things.

Thanks,
Ali

Hi,
1 can be hard to implement.
2 & 3 can be done.
Just check RProcess & RThread for 2
And you need to fiddle with window server for sending keys.
Bye.
--eminemence.