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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Daniel Van Der WerkenIndependent 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.