Distinguishing between a mngd & unmngd assemblies

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

Guest

Ho can one distinguish between a mngd & unmngd assemblies? ( preferable in
managed code )
 
Nadav,
And how can I distinguish between a mngd & mixed mode assem?

Humm... good question. I'm not sure there's a 100% sure way of doing this,
but, one good indicator would be to look for the COMIMAGE_FLAGS_ILONLY flag
in the COR header of the PE file. Check out the corhdr.h file that comes
with the .NET Framework SDK for details on the header and the flags, and
the SILO (Set-IL-Only) tool source code that comes with VC++ (
http://msdn.microsoft.com/library/d...ple/html/vcsamsetilonlysamplesetilonlybit.asp)
 

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