troubleshooting Question

Intercept API calls

Avatar of Freddy1990
Freddy1990Flag for Belgium asked on
DelphiMicrosoft Development
21 Comments2 Solutions1379 ViewsLast Modified:
I'm looking for a way to intercept all calls made from my application and any dll loaded by it, to certain Windows API functions. Like for example, CreateFileMapping. I'd also like to do this, preferably without adding any extra dll files to my project. I've been told I can do this with Microsoft Detours, but it's written in C++ and I can't find a Delphi wrapper for it, I've also tried compiling it into an object file with C++ Builder, but several of the external declarations needed look like gibberish. So I was hoping there might be another and possibly simpler way. I'm assuming since I only need to intercept calls made internally in my application, that that might make it easier. (My application has a scriptable environment and I need to intercept certain calls for security purposes to clarify as why I need to do this.)
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 21 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 21 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros