PC Review


Reply
Thread Tools Rate Thread

How to determine if a DLL is a COM DLL or .NET DLL

 
 
Anushi
Guest
Posts: n/a
 
      12th Aug 2004
Hi All,
Is there a way to determine if a Dll is a Com Dll or a .Net Dll ?
Any pointers are greatly appreciated.
Thanks,
Anushi


 
Reply With Quote
 
 
 
 
Nick Malik
Guest
Posts: n/a
 
      12th Aug 2004
why not just point ILDASM at the DLL. If it's not .NET, you will find out
quickly.

--- Nick

"Anushi" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
> Is there a way to determine if a Dll is a Com Dll or a .Net Dll ?
> Any pointers are greatly appreciated.
> Thanks,
> Anushi
>
>



 
Reply With Quote
 
=?Utf-8?B?UHJlbSBLdW1hcg==?=
Guest
Posts: n/a
 
      31st Aug 2004
Hi

I too got around with this same problem, but i've the solution only if it is
a VB5 or VB6 COM Dll. In the above two, the Dll Binary file will have a text
called MSVBVM (Microsoft Visual Basic Virtual Machine). So what you could do
is, in the Search->Files, goto the containing text and type "MSVBVM", so it
would list all the VB -COM Dlls

Prem

"Nick Malik" wrote:

> why not just point ILDASM at the DLL. If it's not .NET, you will find out
> quickly.
>
> --- Nick
>
> "Anushi" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi All,
> > Is there a way to determine if a Dll is a Com Dll or a .Net Dll ?
> > Any pointers are greatly appreciated.
> > Thanks,
> > Anushi
> >
> >

>
>
>

 
Reply With Quote
 
Shankar Reddy
Guest
Posts: n/a
 
      3rd Sep 2004
I think he is asking programatically ....isn't right Anushi?
"Prem Kumar" <(E-Mail Removed)> wrote in message
news:8E73E1F7-ECF1-4FF5-B673-(E-Mail Removed)...
> Hi
>
> I too got around with this same problem, but i've the solution only if it

is
> a VB5 or VB6 COM Dll. In the above two, the Dll Binary file will have a

text
> called MSVBVM (Microsoft Visual Basic Virtual Machine). So what you could

do
> is, in the Search->Files, goto the containing text and type "MSVBVM", so

it
> would list all the VB -COM Dlls
>
> Prem
>
> "Nick Malik" wrote:
>
> > why not just point ILDASM at the DLL. If it's not .NET, you will find

out
> > quickly.
> >
> > --- Nick
> >
> > "Anushi" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Hi All,
> > > Is there a way to determine if a Dll is a Com Dll or a .Net Dll ?
> > > Any pointers are greatly appreciated.
> > > Thanks,
> > > Anushi
> > >
> > >

> >
> >
> >



 
Reply With Quote
 
Richard Grimes [MVP]
Guest
Posts: n/a
 
      17th Sep 2004
Anushi wrote:
> Hi All,
> Is there a way to determine if a Dll is a Com Dll or a .Net Dll ?
> Any pointers are greatly appreciated.
> Thanks,
> Anushi


Look for the CLR header, this is documented in the ECMA spec.

DOS header starts at 0x0, the DWORD at 0x3c contains a pointer to the PE
signature (usually 0x80) which is 4 bytes, the next 20 bytes is the COFF
header and then there is the PE header (at 0x98). The PE header is 224 bytes
and contains the data directory (at 96 bytes into the PE header = 0xf8). The
15th entry (at 0x168) is the CLR header descriptor (sometimes called the COM
descriptor, but this does not have anything to do with COM). If this is
empty (ie 0 in the 8 bytes from 0x168 to 0x16f) then the file is not a .NET
assembly. If you want to check if it is a COM DLL then you should look to
see if it exports GetClassObject.

Note that these offsets will be different for 64-bit DLLs.

Richard
--
..NET training, consultancy and mentoring
my email (E-Mail Removed) is encrypted with ROT13 (www.rot13.org)
sign up for my free .NET newsletter at
http://www.wd-mag.com/newsletters/


 
Reply With Quote
 
Ham
Guest
Posts: n/a
 
      28th Oct 2004
use "Dependency Walker" which comes with VC++ 6.0. This cool app lists all
available Dlls for your application

"Prem Kumar" <(E-Mail Removed)> wrote in message
news:8E73E1F7-ECF1-4FF5-B673-(E-Mail Removed)...
> Hi
>
> I too got around with this same problem, but i've the solution only if it
> is
> a VB5 or VB6 COM Dll. In the above two, the Dll Binary file will have a
> text
> called MSVBVM (Microsoft Visual Basic Virtual Machine). So what you could
> do
> is, in the Search->Files, goto the containing text and type "MSVBVM", so
> it
> would list all the VB -COM Dlls
>
> Prem
>
> "Nick Malik" wrote:
>
>> why not just point ILDASM at the DLL. If it's not .NET, you will find
>> out
>> quickly.
>>
>> --- Nick
>>
>> "Anushi" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > Hi All,
>> > Is there a way to determine if a Dll is a Com Dll or a .Net Dll ?
>> > Any pointers are greatly appreciated.
>> > Thanks,
>> > Anushi
>> >
>> >

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to determine the value? Eric Microsoft Excel Misc 0 6th Jun 2010 06:17 AM
Determine best way to sum WLMPilot Microsoft Excel Misc 4 22nd Dec 2008 02:03 AM
How to determine the value? =?Utf-8?B?RXJpYw==?= Microsoft Excel Worksheet Functions 1 13th Feb 2007 04:17 AM
how to determine SID jg Windows XP Security 2 5th Mar 2006 01:21 AM
[Help]How do we determine? Wang.Hua Windows XP General 0 2nd Nov 2004 03:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:49 PM.