The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Way to monitor API calls of an XP process?

    Discussion in 'Windows OS and Software' started by Greg, May 29, 2007.

  1. Greg

    Greg Notebook Nobel Laureate

    Reputations:
    7,857
    Messages:
    16,212
    Likes Received:
    58
    Trophy Points:
    466
    I'm trying to figure out some stuff, and I may need to listen into one program to determine what kinds of calls it is making to a specific DLL and/or groups of DLLs. Anyone know a freeware program good for that?
     
  2. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    Check for API intercept and hooking on Google. I don't know of any freeware, but it's a starting point :)
     
  3. Nrbelex

    Nrbelex Notebook Deity NBR Reviewer

    Reputations:
    217
    Messages:
    1,286
    Likes Received:
    0
    Trophy Points:
    55
  4. Greg

    Greg Notebook Nobel Laureate

    Reputations:
    7,857
    Messages:
    16,212
    Likes Received:
    58
    Trophy Points:
    466
    Holy crap...that might do the trick. I'll have to look.

    Basically, I'm trying to reverse engineer some code and figure out what DLLs it is using, and if any of those DLLs are XP system files. I'm grasping at straws for this project...

    EDIT: Is there a way to get this program to scan the .EXE without having to run it? You know, like find the calls without the program running? This software requires some USB hardware I don't think my company has... Or maybe is there a program that can scan a DLL file and at least give me some useful information about what is in it?
     
  5. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    Hex edit the sucker ;) Search for strings in the executable that contain ".dll", see what pops up.
     
  6. Greg

    Greg Notebook Nobel Laureate

    Reputations:
    7,857
    Messages:
    16,212
    Likes Received:
    58
    Trophy Points:
    466
    I like that idea...I'll try it.

    Yes, I know this sounds like hacking...its more like reverse engineering in this case though. Any hackers in the group? ;)
     
  7. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    Why do you think I suggested hex editing it? I may not be doing much programming lately, but I know a thing or three ;)
     
  8. bogart

    bogart Notebook Evangelist

    Reputations:
    183
    Messages:
    553
    Likes Received:
    1
    Trophy Points:
    31
    You can use a debugger like OllyDbg to find out what you're looking for. If you want to learn how to use it, watch Lena's extensive video tutorials and read these forums:

    Code:
    http://www.tuts4you.com/download.php?list.17
    http://www.tuts4you.com/forum/index.php
    http://arteam.accessroot.com
    http://www.woodmann.com/forum/index.php
    
     
  9. jimc

    jimc Notebook Consultant

    Reputations:
    130
    Messages:
    269
    Likes Received:
    0
    Trophy Points:
    30
    Sounds like what Dependency Walker does, it lists all the DLL imports from an EXE/DLL. It comes with Platform SDK, search for depends.exe. EDIT: OK you can download it here, http://www.dependencywalker.com/
    Newer versions of it lets you (sort of) debug the application so that any dynamically loaded DLLs (and dynamically imported functions) are also shown.