views:

545

answers:

2

Is there a tool to extract/generate .h headers for DLL exports given only the DLL? Manually typing them is proving a pain in the backside...

A: 

That's not possible in case of generic C Dll. C procedure symbols have no type information mangled in.

dumpbin can list the procedure names, but you cannot deduce the return types, the number of parameters, e.t.c.

EFraim
A: 

Agree with EFraim but maybe you have some extra, additional info, about the dll that you can use. http://www.dependencywalker.com/ lists all the functions that are exported by that module and could perhaps give you a clue depending on the dll.

Jonke