Finding external calls in C ++ dll

We are currently using the hardware driver DLL for the specific hardware with which we interact. However, we also have an old internally developed DLL, written with VC ++ around 2002, which wraps this DLL for several basic functions. This code has long been lost, and it was well designed before I went on stage. Therefore, it cannot be supported or even viewed in the event of a failure. We are trying to cut the middleman by accessing the driver directly from our C # .NET application.

I know this DLL just wraps the hardware vendor DLL, but the method signatures do not match. It looks like it calls several driver functions in one method. My question is this: how can I see all the external calls that the DLL shell makes in the DLL driver for this particular function? I am not interested in any other code; I am quite sure that I can deduce that if I can just find out what calls he makes to the driver.

Edit: a more concise explanation (what is compiled) ...

Driver.dll has a function StartAcquisition(int, string). It also has many customization features.

Wrapper.dll has a function StartAcquisition(int, string, double, int).

I suspect that the Wrapper.dll calls Driver.dll StartAcquisition(int, string)in addition to a few other calls (probably these configuration functions). I want to know what other challenges might be.

+3
source share
4 answers

I think PE.Explorer can help you .

Even if it does not display it directly, you can still get the disassembly and check the mapping of the import tables. Perhaps connecting this tool with another, such as Windbg or OllyDbg , you can get interesting results.

Any tool that can help you should deal with disassembly. In the current Portable Executable (PE) format, there are explicit sections for import / export. Comparing these tables with code requires some interpretation, so I don’t think that a tool that does this right away exists.

+2
source
+1

, , . , , , , .

0

DLL , , DLL. - , - .

0

Source: https://habr.com/ru/post/1756257/


All Articles