listing functions in unmanaged .dll

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?LnBhdWwu?=

    listing functions in unmanaged .dll

    how do i list all available functions in an unmanaged .dll?
    i tried using reflection, but that seems to only work with managed assemblies
  • =?Utf-8?B?LnBhdWwu?=

    #2
    RE: listing functions in unmanaged .dll



    ".paul." wrote:
    how do i list all available functions in an unmanaged .dll?
    i tried using reflection, but that seems to only work with managed assemblies
    forgot to mention i'm using vb.net 2005.

    Comment

    • Petar Atanasov

      #3
      Re: listing functions in unmanaged .dll

      ..paul. wrote:
      how do i list all available functions in an unmanaged .dll?
      i tried using reflection, but that seems to only work with managed assemblies
      Hi, Paul

      If the unmanaged .dll is COM based:

      1) Use Tlbimp
      [http://msdn2.microsoft.com/en-us/lib...x(vs.80).aspx]
      2) Examine file with
      Ildasm
      [http://msdn2.microsoft.com/en-us/lib...1(VS.80).aspx]
      3) And than wrap with
      RCW [http://msdn2.microsoft.com/en-us/library/8bwh56xe.aspx]

      HTH,
      Petar Atanasov
      Daftar Situs Slot Gacor dengan RTP Tertinggi untuk Pemain Baru

      Comment

      • Mattias Sjögren

        #4
        Re: listing functions in unmanaged .dll

        >how do i list all available functions in an unmanaged .dll?

        If it isn't a COM library, use a tool like Dumpbin.exe or Depends.exe
        (Dependency Walker, http://www.dependencywalker.com).


        Mattias

        --
        Mattias Sjögren [C# MVP] mattias @ mvps.org
        http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
        Please reply only to the newsgroup.

        Comment

        • =?Utf-8?B?LnBhdWwu?=

          #5
          Re: listing functions in unmanaged .dll



          "Petar Atanasov" wrote:
          ..paul. wrote:
          how do i list all available functions in an unmanaged .dll?
          i tried using reflection, but that seems to only work with managed assemblies
          >
          Hi, Paul
          >
          If the unmanaged .dll is COM based:
          >
          1) Use Tlbimp
          [http://msdn2.microsoft.com/en-us/lib...x(vs.80).aspx]
          2) Examine file with
          Ildasm
          [http://msdn2.microsoft.com/en-us/lib...1(VS.80).aspx]
          3) And than wrap with
          RCW [http://msdn2.microsoft.com/en-us/library/8bwh56xe.aspx]
          >
          HTH,
          Petar Atanasov
          Daftar Situs Slot Gacor dengan RTP Tertinggi untuk Pemain Baru

          >

          i tried this:

          Dim result As DialogResult

          result = ofd1.ShowDialog ()

          If result = Windows.Forms.D ialogResult.OK Then
          ''
          '' for this example ofd1.filename =
          "c:\windows\sys tem32\wininet.d ll"
          ''
          System.Diagnost ics.Process.Sta rt("C:\Program Files\Microsoft
          Visual _Studio 8\SDK\v2.0\Bin\ tlbimp.exe " & ofd1.FileName &
          "/out:myTest.dll" )
          Threading.Threa d.Sleep(5000)
          System.Diagnost ics.Process.Sta rt("C:\Program Files\Microsoft
          Visual _Studio 8\SDK\v2.0\Bin\ ildasm.exe myTest.dll/out:myTest.il")
          End If

          but it doesn't work. error is - file not found.

          Comment

          • =?Utf-8?B?LnBhdWwu?=

            #6
            Re: listing functions in unmanaged .dll



            "Petar Atanasov" wrote:
            ..paul. wrote:
            how do i list all available functions in an unmanaged .dll?
            i tried using reflection, but that seems to only work with managed assemblies
            >
            Hi, Paul
            >
            If the unmanaged .dll is COM based:
            >
            1) Use Tlbimp
            [http://msdn2.microsoft.com/en-us/lib...x(vs.80).aspx]
            2) Examine file with
            Ildasm
            [http://msdn2.microsoft.com/en-us/lib...1(VS.80).aspx]
            3) And than wrap with
            RCW [http://msdn2.microsoft.com/en-us/library/8bwh56xe.aspx]
            >
            HTH,
            Petar Atanasov
            Daftar Situs Slot Gacor dengan RTP Tertinggi untuk Pemain Baru

            >
            interesting photography

            Comment

            • Petar Atanasov

              #7
              Re: listing functions in unmanaged .dll

              ..paul. wrote:
              >
              "Petar Atanasov" wrote:
              >
              >..paul. wrote:
              >>how do i list all available functions in an unmanaged .dll?
              >>i tried using reflection, but that seems to only work with managed assemblies
              >Hi, Paul
              >>
              >If the unmanaged .dll is COM based:
              >>
              >1) Use Tlbimp
              >[http://msdn2.microsoft.com/en-us/lib...x(vs.80).aspx]
              >2) Examine file with
              >Ildasm
              >[http://msdn2.microsoft.com/en-us/lib...1(VS.80).aspx]
              >3) And than wrap with
              >RCW [http://msdn2.microsoft.com/en-us/library/8bwh56xe.aspx]
              >>
              >HTH,
              >Petar Atanasov
              >http://a-wake.net
              >>
              >
              >
              i tried this:
              >
              Dim result As DialogResult
              >
              result = ofd1.ShowDialog ()
              >
              If result = Windows.Forms.D ialogResult.OK Then
              ''
              '' for this example ofd1.filename =
              "c:\windows\sys tem32\wininet.d ll"
              ''
              System.Diagnost ics.Process.Sta rt("C:\Program Files\Microsoft
              Visual _Studio 8\SDK\v2.0\Bin\ tlbimp.exe " & ofd1.FileName &
              "/out:myTest.dll" )
              Threading.Threa d.Sleep(5000)
              System.Diagnost ics.Process.Sta rt("C:\Program Files\Microsoft
              Visual _Studio 8\SDK\v2.0\Bin\ ildasm.exe myTest.dll/out:myTest.il")
              End If
              >
              but it doesn't work. error is - file not found.
              Paul,

              Debug more carefully: Drive:\Path\Tlb Imp.exe
              ;)

              Regards,
              Petar Atanasov
              Daftar Situs Slot Gacor dengan RTP Tertinggi untuk Pemain Baru

              Comment

              Working...