-
October 8th, 2004, 03:14 AM
#1
Viewing DLL Functions and parameters
Hi. i was wondering if there is a way to view the functions inside a .dll AND the parameters.
Example:
FunctionBlah(char* Test)
If there is no way to do this, is there a way to watch a program access a .dll and figure out the function parameters?
Any help appreicated!!
-
October 8th, 2004, 03:54 AM
#2
Re: Viewing DLL Functions and parameters
Open the DLL in Dependency Walker. The tool ships with Visual Studio. You'll get there a list of the functions in that DLL. I assume there should be some function that would allow you to achieve the same result programatically.
Har Har
-
October 8th, 2004, 04:14 AM
#3
Re: Viewing DLL Functions and parameters
Dependency Walker does display the list of functions available in the dll. However, it doesn't show the parameter list. I am not sure if it is possible to find out the parameter list though.
-
October 8th, 2004, 04:43 AM
#4
Re: Viewing DLL Functions and parameters
hmmm tried dependency walker and a few other programs, but they dont show the function parameters
anybody??
-
October 8th, 2004, 05:05 AM
#5
Re: Viewing DLL Functions and parameters
Hi,
Few days back i have asked same kind of question on this forum. Form somebody i got the response that it is possible through COM component.
'underlay', what all other tools you have used?
However, Dependancy walker is showing you only functions exported but not the parameter list. I working on this problem; may be i will reinitiate this thread once i finished.
-PiyuNewe
-
October 8th, 2004, 05:14 AM
#6
Re: Viewing DLL Functions and parameters
Originally Posted by PiyuNewe
I working on this problem; may be i will reinitiate this thread once i finished.
Please do so. Lots of people do not bother providing feedback to the solutions they received.
Har Har
-
October 25th, 2004, 08:01 AM
#7
Re: Viewing DLL Functions and parameters
Is there any update on this? It would be highly useful!
-
October 25th, 2004, 09:07 AM
#8
Re: Viewing DLL Functions and parameters
I tired to search on google few days back, but didn't find any solution. I think if any one knows good assembly can help us.
bashish
-
October 25th, 2004, 11:35 AM
#9
Re: Viewing DLL Functions and parameters
If you know the decorated name, you can use the undname utility to see the parameters. For example, if the decorated name is ?a@@YAHD@Z, when you give the command
Code:
undname -f ?a@@YAHD@Z
the result shows:
Code:
D:\>undname -f ?a@@YAHD@Z
Microsoft« Windows« Operating System
UNDNAME Version 5.1.2600.0Copyright (c) Microsoft Corporation. All rights reserv
ed.
>> ?a@@YAHD@Z == int __cdecl a(char)
D:\>
undname is normally found in your Program Files\Microsoft Visual Studio\Common\Tools folder.
Hope that helps.
Be sure to rate those who help!
-------------------------------------------------------------
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
-
October 25th, 2004, 11:56 AM
#10
Re: Viewing DLL Functions and parameters
And in code it would be UnDecorateSymbolName(...)
-
October 25th, 2004, 11:58 AM
#11
Re: Viewing DLL Functions and parameters
Wow that's great, thanks... I wonder if any of the normal programs that analyze PEs can give me the decorated name of a function?
EDIT: Ahh, Dumpbin does do that, on OBJ files at least... I hope it works for DLLs too.
Last edited by ACS_Solver; October 25th, 2004 at 12:09 PM.
-
October 25th, 2004, 12:19 PM
#12
Re: Viewing DLL Functions and parameters
Does name decoration depend on the complier or is it standardised ?
-
October 25th, 2004, 12:23 PM
#13
Re: Viewing DLL Functions and parameters
Guess I'm not sure if it's standard or not. Good question.
Since undname is from Microsoft and this is the Visual C++ forum, I just assumed (bad idea, I know), that we're dealing with MS code.
Be sure to rate those who help!
-------------------------------------------------------------
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
-
October 25th, 2004, 12:28 PM
#14
Re: Viewing DLL Functions and parameters
Another thing is.. if it is extern "C"ed function, the param info is not there in the function name, right ? So, undecorate wouldn't help..
Anyways, I get the feeling this method can be used in restricted cases..
But, it's a good question though.. probably that's the reason, there ain't any tools that do that
-
October 26th, 2004, 12:02 AM
#15
Re: Viewing DLL Functions and parameters
Hey,
That's a good tool, but you need decorated name .
bashish
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
|