-
July 16th, 2006, 08:27 AM
#1
using dumpbin.exe
Hi there ..
How to use (dumpbin.exe) to get the parameters (Arguments) of Exported Functions
in a .dll file
thanks.
-
July 16th, 2006, 08:44 AM
#2
Re: using dumpbin.exe
Regards,
Ramkrishna Pawar
-
July 17th, 2006, 07:06 AM
#3
Re: using dumpbin.exe
Originally Posted by Krishnaa
Thanks but :
the command
C:\>undname ?func1@a@@AAEXH@Z
Microsoft (R) C++ Name Undecorator
Copyright (C) Microsoft Corporation 1981-2000. All rights reserved.Undecoration
of :- "?func1@a@@AAEXH@Z"
is :- "private: void __thiscall a::func1(int)"
is helpful, but in my case i don't have the function name in the form
"?func1@a@@AAEXH@Z", I rather have it in the form "func1" as
exported from the .dll file
-
July 17th, 2006, 07:14 AM
#4
Re: using dumpbin.exe
Originally Posted by hthm
Thanks but :
the command
C:\>undname ?func1@a@@AAEXH@Z
Microsoft (R) C++ Name Undecorator
Copyright (C) Microsoft Corporation 1981-2000. All rights reserved.Undecoration
of :- "?func1@a@@AAEXH@Z"
is :- "private: void __thiscall a::func1(int)"
is helpful, but in my case i don't have the function name in the form
"?func1@a@@AAEXH@Z", I rather have it in the form "func1" as
exported from the .dll file
You can only see parameters of C++ exported functions, the functions which are exported as extern "C" or using .def file are not decorated, they are exported C way which dont decorate the export name.
Regards,
Ramkrishna Pawar
-
July 17th, 2006, 07:16 AM
#5
Re: using dumpbin.exe
Is that sure decorated function ? if yes You can use dumbin to dump the export names anf then use undname.exe on those names.
Regards,
Ramkrishna Pawar
-
July 17th, 2006, 08:29 AM
#6
Re: using dumpbin.exe
Originally Posted by hthm
How to use (dumpbin.exe) to get the parameters (Arguments) of Exported Functions
in a .dll file
In common case - no way. The dll must be provided along with the correspondent header file (so called "SDK" concept) to be used properly. DUMPBIN has no ability to recover prototype of exported function from binary module since such information is lost on binary file linkage phase.
BTW, the ability of UNDNAME to recover the function prototype is not more than side effect of C++ linkage specifics.
Last edited by Igor Vartanov; July 17th, 2006 at 08:31 AM.
Best regards,
Igor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|