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. Getting information from a DLL

Getting information from a DLL

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

    hello ppl what i am trying to do here is find out what functions are available for a particular DLL for example most of the API function are contained in USER32.DLL file we can write code for accessing functions like SendInput and SetLayeredWindowAttributes that is we can explicitly link the DLL file and get those functions to work now what i want to do it there is a third party DLL that i would like to explicitly link now the problem is with USER32.dll i am aware of the functions their return types and their parameters but such is not the case with a third party DLL how do i know what functions this DLL contains the parameters the return type and everything any help would be appreciated Regards Ahmed Ajmal

    R 1 Reply Last reply
    0
    • C Cyberizen

      hello ppl what i am trying to do here is find out what functions are available for a particular DLL for example most of the API function are contained in USER32.DLL file we can write code for accessing functions like SendInput and SetLayeredWindowAttributes that is we can explicitly link the DLL file and get those functions to work now what i want to do it there is a third party DLL that i would like to explicitly link now the problem is with USER32.dll i am aware of the functions their return types and their parameters but such is not the case with a third party DLL how do i know what functions this DLL contains the parameters the return type and everything any help would be appreciated Regards Ahmed Ajmal

      R Offline
      R Offline
      Ryan Binns
      wrote on last edited by
      #2

      You can't get parameter and return value information from a DLL. You'll need third-party-supplied information to know that. You can get a list of the functions it exports by examining the export table, but you can't get any information about them, other than their name.

      Ryan

      "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

      C 1 Reply Last reply
      0
      • R Ryan Binns

        You can't get parameter and return value information from a DLL. You'll need third-party-supplied information to know that. You can get a list of the functions it exports by examining the export table, but you can't get any information about them, other than their name.

        Ryan

        "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

        C Offline
        C Offline
        Cyberizen
        wrote on last edited by
        #3

        yeah ryan actually i tried the DEPENDS tool that installs with the Visual Studio and yes i did find out the functions their names but not any other imformation and what do u mean by EXPORT TABLE how do i use that Ahmed Ajmal

        D R 2 Replies Last reply
        0
        • C Cyberizen

          yeah ryan actually i tried the DEPENDS tool that installs with the Visual Studio and yes i did find out the functions their names but not any other imformation and what do u mean by EXPORT TABLE how do i use that Ahmed Ajmal

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Cyberizen wrote: what do u mean by EXPORT TABLE how do i use that A DLL's export table is the list of functions that it exports. Read about it in more detail on MSDN.

          1 Reply Last reply
          0
          • C Cyberizen

            yeah ryan actually i tried the DEPENDS tool that installs with the Visual Studio and yes i did find out the functions their names but not any other imformation and what do u mean by EXPORT TABLE how do i use that Ahmed Ajmal

            R Offline
            R Offline
            Ryan Binns
            wrote on last edited by
            #5

            The export table in the DLL lists all the functions that the DLL exports. This is what the DEPENDS tool examines, so you can't get more than what DEPENDS gives you. It doesn't give parameters or return type.

            Ryan

            "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

            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