Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(Windows) Monitoring API calls in C

Tags:

c

winapi

api

Is there anyway to monitor API calls on your system in C?

like image 826
dax Avatar asked Apr 06 '09 05:04

dax


4 Answers

On a function-by-function base, you can use Microsoft Detours. It intercepts API calls by rewriting the function entry points to point to your code.

like image 155
MSalters Avatar answered Nov 15 '22 22:11

MSalters


API Monitoring Tools has an extensive list of API Monitoring Tools. I used PIX for monitoring DirectX calls. You should give a try to Rohitab's Api Monitor.

like image 21
SMUsamaShah Avatar answered Nov 15 '22 23:11

SMUsamaShah


Another tool to look at is ProcessMonitor from Mark Russinovich. It doesn't monitor all api calls, however.

like image 43
RBerteig Avatar answered Nov 15 '22 22:11

RBerteig


Although it isn't free, you may want to look into API Monitor. It has the ability to log to XML files, so you could determine the APIs that have been called by reading this file in your application of choice.

like image 32
John T Avatar answered Nov 15 '22 22:11

John T