Viewing Exported Functions and Parameters in a DLL
-
Lately I've been getting pretty excited with Interop stuff, but I have one problem, I have no idea what the parameters for a particular .dll method are. I know how to view all the exported functions in a method using DUMPBIN or LINK (if anyone knows a better way, I'm all ears) but it doesn't tell me anything about the parameters. Any ideas?
-
Lately I've been getting pretty excited with Interop stuff, but I have one problem, I have no idea what the parameters for a particular .dll method are. I know how to view all the exported functions in a method using DUMPBIN or LINK (if anyone knows a better way, I'm all ears) but it doesn't tell me anything about the parameters. Any ideas?
If you're talking about native DLLs (which you most likely are since you're viewing the EAT with DUMPBIN), this is not even possible. The exported functions are merely RVAs (relative virtual addresses). The execution stack contains pointers or data that the function call pops from. The parameters are not known except by the function itself, so they are not in the EAT (export address table). All you can do is consult the documentation. If these are Windows DLLs, most APIs are documented in the MSDN Library[^], which should be your first stop for any questions about Windows platform developer (contains the Platform SDK, the .NET Framework SDK, Web Development, and many other Windows-related documentation).
Microsoft MVP, Visual C# My Articles
-
If you're talking about native DLLs (which you most likely are since you're viewing the EAT with DUMPBIN), this is not even possible. The exported functions are merely RVAs (relative virtual addresses). The execution stack contains pointers or data that the function call pops from. The parameters are not known except by the function itself, so they are not in the EAT (export address table). All you can do is consult the documentation. If these are Windows DLLs, most APIs are documented in the MSDN Library[^], which should be your first stop for any questions about Windows platform developer (contains the Platform SDK, the .NET Framework SDK, Web Development, and many other Windows-related documentation).
Microsoft MVP, Visual C# My Articles
Heath Stewart wrote: If you're talking about native DLLs (which you most likely are since you're viewing the EAT with DUMPBIN), this is not even possible. That's really good to know. Thanks a ton Heath. Looks like you're answering everybody's questions today.