Logging a process's function calls

This is a discussion on Logging a process's function calls within the Windows Programming forums, part of the Platform Specific Boards category; Hello, Does anyone know how I can go about logging the Windows API function calls a process makes?...

  1. #1
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,263

    Question Logging a process's function calls

    Hello,

    Does anyone know how I can go about logging the Windows API function calls a process makes?

  2. #2
    Registered User
    Join Date
    Dec 2002
    Posts
    119
    I wouldn't know how to go about logging API calls, but you could try out this piece of software: http://www.rohitab.com/apimonitor/

    -Futura
    If you speak or are learning Spanish, check out this Spanish and English Dictionary, it is a handy online resource.
    What happens is not as important as how you react to what happens. -Thaddeus Golas

  3. #3
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,263
    I found out the function it uses that I am interested in.

    Is there a way I can get a process to load my own DLL in place of a system DLL, so I can handle a function it uses and pass everything my DLL doesn't handle over to the real system DLL?

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Search the web for articles by Matt Pietrek. And it's called "patching".
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  5. #5
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,263
    Coo, ta.

    Patch the Import Address Table eh? Now I'll have to learn the Win32 Portable Executable format. Why can't these things be simple...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 12:03 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. C++ compilation issues
    By Rupan in forum C++ Programming
    Replies: 1
    Last Post: 08-22-2005, 05:45 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21