dax
dax

Reputation: 203

(Windows) Monitoring API calls in C

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

Upvotes: 11

Views: 12105

Answers (5)

SMUsamaShah
SMUsamaShah

Reputation: 7890

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.

Upvotes: 3

MSalters
MSalters

Reputation: 180235

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.

Upvotes: 3

bk1e
bk1e

Reputation: 24328

The Debugging Tools for Windows package includes a debugger extension called logexts.dll which can log Win32 API function calls. It also has a separate front-end program called logger.exe for when you don't want to attach the debugger.

Upvotes: 2

RBerteig
RBerteig

Reputation: 43366

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

Upvotes: 2

user36457
user36457

Reputation:

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.

Upvotes: 1

Related Questions