Detecting .NET assemblies from native apps

G

Guest

I need to determine from a native VB6 application whether a .exe is a .NET
assembly or just a regular app. Is there an easy way to know that?

My app launches a bunch of processes on startup. I need to launch those
executables that are .NET assemblies in their own process by hosting the CLR.

Regards

--
What difference does it make to the dead, the orphans and the homeless,
whether the mad destruction is wrought under the name of totalitarianism or
the holy name of liberty or democracy?

-M. Gandhi
 
M

Michael Nemtsev

Hello Javier,

Yep, you need to analyze the PE header, where is CLR metadata locates, if any

See my post there http://groups.google.com/group/micr...cd20/fe54e9dde2c3b661?&hl=en#fe54e9dde2c3b661

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

JE> I need to determine from a native VB6 application whether a .exe is
JE> a .NET assembly or just a regular app. Is there an easy way to know
JE> that?
JE>
JE> My app launches a bunch of processes on startup. I need to launch
JE> those executables that are .NET assemblies in their own process by
JE> hosting the CLR.
JE>
JE> Regards
JE>
JE> -M. Gandhi
JE>
 

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