listing functions in unmanaged .dll

G

Guest

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

Guest

.paul. said:
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.
 
P

Petar Atanasov

..paul. said:
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/library/tt0cf3sx(vs.80).aspx]
2) Examine file with
Ildasm
[http://msdn2.microsoft.com/en-us/library/f7dy01k1(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
 
G

Guest

Petar Atanasov said:
..paul. said:
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/library/tt0cf3sx(vs.80).aspx]
2) Examine file with
Ildasm
[http://msdn2.microsoft.com/en-us/library/f7dy01k1(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.DialogResult.OK Then
''
'' for this example ofd1.filename =
"c:\windows\system32\wininet.dll"
''
System.Diagnostics.Process.Start("C:\Program Files\Microsoft
Visual _Studio 8\SDK\v2.0\Bin\tlbimp.exe " & ofd1.FileName &
"/out:myTest.dll")
Threading.Thread.Sleep(5000)
System.Diagnostics.Process.Start("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.
 
G

Guest

Petar Atanasov said:
..paul. said:
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/library/tt0cf3sx(vs.80).aspx]
2) Examine file with
Ildasm
[http://msdn2.microsoft.com/en-us/library/f7dy01k1(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

interesting photography
 
P

Petar Atanasov

..paul. said:
Petar Atanasov said:
..paul. said:
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/library/tt0cf3sx(vs.80).aspx]
2) Examine file with
Ildasm
[http://msdn2.microsoft.com/en-us/library/f7dy01k1(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.DialogResult.OK Then
''
'' for this example ofd1.filename =
"c:\windows\system32\wininet.dll"
''
System.Diagnostics.Process.Start("C:\Program Files\Microsoft
Visual _Studio 8\SDK\v2.0\Bin\tlbimp.exe " & ofd1.FileName &
"/out:myTest.dll")
Threading.Thread.Sleep(5000)
System.Diagnostics.Process.Start("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\TlbImp.exe
;)

Regards,
Petar Atanasov
http://a-wake.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top