Distinguishing between a mngd & unmngd assemblies

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can one distinguish between a mngd & unmngd assemblies? ( preferable
through managed code ).
 
What do you mean by an "unmanaged assembly" - do you mean a standard DLL/EXE as opposed to a .NET one? If ythat is the case you could read the PE file headers and locate the CLI Header (which indicates that it is a .NET executable image. For the PE layout see Partition II of the CLI specification - its towards the end of the document.

http://msdn.microsoft.com/netframework/programming/clr/

Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog

How can one distinguish between a mngd & unmngd assemblies? ( preferable
through managed code ).
 
Well, What i was actually meaning is to distinguish between a mnged & mixed
assemblies, this should be done through managed code.... how do I do that?
 

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

Back
Top