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 / C++ / MFC
  4. Anyway to know the prototype of functions exported by a DLL

Anyway to know the prototype of functions exported by a DLL

Scheduled Pinned Locked Moved C / C++ / MFC
5 Posts 4 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.
  • S Offline
    S Offline
    stolid_rock
    wrote on last edited by
    #1

    Hi i have tried utilities like Dumpbin, OLEview, DEPENDS but we only get the function names. Is there any way to know the prototype of a function exported by a DLL.

    P B S B 4 Replies Last reply
    0
    • S stolid_rock

      Hi i have tried utilities like Dumpbin, OLEview, DEPENDS but we only get the function names. Is there any way to know the prototype of a function exported by a DLL.

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      I dont think that is possible so let the idea of using undocumented api go.


      -prakash

      1 Reply Last reply
      0
      • S stolid_rock

        Hi i have tried utilities like Dumpbin, OLEview, DEPENDS but we only get the function names. Is there any way to know the prototype of a function exported by a DLL.

        B Offline
        B Offline
        basementman
        wrote on last edited by
        #3

        There are really only two ways. One is to have the .h file with the prototypes defined, and the other is to guess (trial/error/reboot).  onwards and upwards...

        1 Reply Last reply
        0
        • S stolid_rock

          Hi i have tried utilities like Dumpbin, OLEview, DEPENDS but we only get the function names. Is there any way to know the prototype of a function exported by a DLL.

          S Offline
          S Offline
          stolid_rock
          wrote on last edited by
          #4

          Thanks Anyway... I thought someone may have some idea of making it possible.

          1 Reply Last reply
          0
          • S stolid_rock

            Hi i have tried utilities like Dumpbin, OLEview, DEPENDS but we only get the function names. Is there any way to know the prototype of a function exported by a DLL.

            B Offline
            B Offline
            Bob Stanneveld
            wrote on last edited by
            #5

            If you are good at reverse engineering, you can try to find a call to that function. Than look at the sthings that are pushed onto the stack. That should give you an idea about how many variables are used by the api. There is one catch though, you don't know what the variables types are, nor do you know what they are used for. I don't know why you need to do that, but if you're planning to use undocumented api's, I can only say that you should not! They are not documented for a reason. The could be subject to change, or complete removal, so in the long run, it will break your program. I also got the blogging virus..[^]

            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