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. Regarding the tool for finding functions and decalaration syntax in windows dll

Regarding the tool for finding functions and decalaration syntax in windows dll

Scheduled Pinned Locked Moved C#
questioncsharpdatabase
5 Posts 5 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.
  • A Offline
    A Offline
    AmmySA
    wrote on last edited by
    #1

    Hi to all I was interested in listing the sql servers available. I found some code " using System.Runtime.InteropServices; " Code is used like that for using windows dll. For that we need to define the method that we want to use as follows : [DllImport("odbc32.dll")] private static extern short SQLAllocHandle( short hType, IntPtr inputHandle, out IntPtr outputHandle); So I want to know that is there any tool to find the declaration of the functions available in the DLL. Please lemme know how can I find the tool to do the same ? If I use IDSAM then it gives the same for .NET libraries only not for windows library. Thanks in Avdvance

    D R S T 4 Replies Last reply
    0
    • A AmmySA

      Hi to all I was interested in listing the sql servers available. I found some code " using System.Runtime.InteropServices; " Code is used like that for using windows dll. For that we need to define the method that we want to use as follows : [DllImport("odbc32.dll")] private static extern short SQLAllocHandle( short hType, IntPtr inputHandle, out IntPtr outputHandle); So I want to know that is there any tool to find the declaration of the functions available in the DLL. Please lemme know how can I find the tool to do the same ? If I use IDSAM then it gives the same for .NET libraries only not for windows library. Thanks in Avdvance

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      Not 100% sure. 1. You MUST know the programming language in which code was written for the DLL. 2. Dumpbin.exe[^] does that. Never used it though.

      जय हिंद Rajdeep.Net[^] is NOT from India. Proof.[^]

      1 Reply Last reply
      0
      • A AmmySA

        Hi to all I was interested in listing the sql servers available. I found some code " using System.Runtime.InteropServices; " Code is used like that for using windows dll. For that we need to define the method that we want to use as follows : [DllImport("odbc32.dll")] private static extern short SQLAllocHandle( short hType, IntPtr inputHandle, out IntPtr outputHandle); So I want to know that is there any tool to find the declaration of the functions available in the DLL. Please lemme know how can I find the tool to do the same ? If I use IDSAM then it gives the same for .NET libraries only not for windows library. Thanks in Avdvance

        R Offline
        R Offline
        Rajesh Anuhya
        wrote on last edited by
        #3

        This may Help You http://www.google.co.in/search?source=ig&hl=en&rlz=1G1GGLQ_ENIN304&=&q=dependency+walker&btnG=Google+Search&meta=lr%3D[^]

        Rajesh B --> A Poor Workman Blames His Tools <--

        1 Reply Last reply
        0
        • A AmmySA

          Hi to all I was interested in listing the sql servers available. I found some code " using System.Runtime.InteropServices; " Code is used like that for using windows dll. For that we need to define the method that we want to use as follows : [DllImport("odbc32.dll")] private static extern short SQLAllocHandle( short hType, IntPtr inputHandle, out IntPtr outputHandle); So I want to know that is there any tool to find the declaration of the functions available in the DLL. Please lemme know how can I find the tool to do the same ? If I use IDSAM then it gives the same for .NET libraries only not for windows library. Thanks in Avdvance

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

          Have you thought about using built-in functionality available in the .NET framework, without having to P/Invoke first? In the System.Data.Sql namespace (in the System.Data dll), there is a SqlDataSourceEnumerator class, that, "Provides a mechanism for enumerating all available instances of SQL Server within the local network." Schmuli.

          1 Reply Last reply
          0
          • A AmmySA

            Hi to all I was interested in listing the sql servers available. I found some code " using System.Runtime.InteropServices; " Code is used like that for using windows dll. For that we need to define the method that we want to use as follows : [DllImport("odbc32.dll")] private static extern short SQLAllocHandle( short hType, IntPtr inputHandle, out IntPtr outputHandle); So I want to know that is there any tool to find the declaration of the functions available in the DLL. Please lemme know how can I find the tool to do the same ? If I use IDSAM then it gives the same for .NET libraries only not for windows library. Thanks in Avdvance

            T Offline
            T Offline
            terradtc
            wrote on last edited by
            #5

            To see what functions are available you might be able to use the built in function of Visual studio, but it does depend on how the dll has been built, I would try that first though because its the easiest way. There's also depends, it allows you to see whats going on in the dll http://www.dependencywalker.com/[^]

            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