how to view unmanaged C dll?

Hi All,
I have a unmanaged C dll and would like to know how I can view it. I know Reflector can be used to view managed dlls, but my dll does not have CLI header, it is a pure C dll......
hamid441Asked:
Who is Participating?
 
Daniel Van Der WerkenConnect With a Mentor Independent ConsultantCommented:
dumpbin
http://msdn.microsoft.com/en-us/library/756as972%28v=VS.71%29.aspx
dumpbin /exports
should give you what the dll exports out for use such as something you might want to use PInvoke on.

0
 
hamid441Author Commented:
Hey Dan7el,
Thanks for your prompt answer. I was able to view the functions inside the dll. Do you know if there is a way to view the structs in the dll? My dll has many typedef struct {...}, and I would like to view them as well....
0
 
hamid441Author Commented:
Also, It would be nice to view function params...
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
pgnatyukCommented:
Try Dependency Walker:
http://www.dependencywalker.com/

That's an easy way. But it is not enough to see a structure or the parameters.

Just for your info OllyDbg:
http://www.ollydbg.de/
http://en.wikipedia.org/wiki/OllyDbg

Reverse engineering is not an easy task.
0
 
Daniel Van Der WerkenIndependent ConsultantCommented:
There is really no way to do what you want without the symbol files and using a debugger.

0
 
evilrixSenior Software Engineer (Avast)Commented:
Once compiled, there is no way to get back to the original C/C++ code. Your best bet is to use a disassembler.
http://en.wikipedia.org/wiki/Disassembler

A really great free one is IDAPro
http://www.hex-rays.com/idapro/idadown.htm

...but you will need to know how to use such a tool and it is not a trivial task by any mean!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.