Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Viewing Exported Functions and Parameters in a DLL

Viewing Exported Functions and Parameters in a DLL

Scheduled Pinned Locked Moved C#
comhelptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mr Rogers
    wrote on last edited by
    #1

    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?

    H 1 Reply Last reply
    0
    • M Mr Rogers

      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?

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      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

      M 1 Reply Last reply
      0
      • H Heath Stewart

        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

        M Offline
        M Offline
        Mr Rogers
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups