开发者

Finding arguments that go with methods in C++ dll's

开发者 https://www.devze.com 2023-01-07 11:47 出处:网络
Ok, so I can use 开发者_如何学Pythondumpbin.exe /exports library.dll to find all methods in the dll.

Ok, so I can use 开发者_如何学Pythondumpbin.exe /exports library.dll to find all methods in the dll.

...but how do I find out which arguments to pass into them? Without a header file of course.


For the usual C-style exports (e.g., Windows API DLLs): You can't. This information is not stored in the DLL and is inevitably lost after compilation (unless you have the headers or debuging symbols).

C++ exports, on the other hand, store their signature as part of the mangled function name and you can view them using Dependency Walker or similar tools, or demangle them manually using the UNDNAME tool or DUMPBIN's /SYMBOLS option.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号