> Can someone refer to me a good online resourec about how a .NET exe
> gets loaded into memory and executed once I dbl-click the executable
> icon from my windows explorer?
1) Jeffrey Richter's (sorry if misspelled) book describes this
2) you can take Shared Source CLI from MS site and study
3) in brief - the stub embedded into .NET executable loads mscorelib.dll
using Win32 API and passes execution to .NET core.

Signature
Eugene Mayevski
EldoS Corp., CTO
Networking and security solutions, custom development services
http://www.eldos.com
Mattias Sj?gren - 20 May 2004 21:13 GMT
Eugene,
>3) in brief - the stub embedded into .NET executable loads mscorelib.dll
^^^^^^^^^^^^^
I think you mean Mscoree.dll.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Patrik L?wendahl - 24 May 2004 11:28 GMT
Which is a stub that loads mscorwks or mscorsrv depending on the operativ
system the application runs on.
The "stub" mentioned is the PE-Header, so nothing fancy .NET specific.
Although for XP (or 2003 don't really remember) and later the OS identifes
the exe as a .net application and starts the CLR directly, effectivly
killing the possibility for pe-header based viruses on you apps

Signature
Patrik L?wendahl
www.cshrp.net - "Elegant code by witty programmers"
> Eugene,
>
[quoted text clipped - 5 lines]
>
> Mattias
> Can someone refer to me a good online resourec about how a .NET exe
> gets loaded into memory and executed once I dbl-click the executable
> icon from my windows explorer?
What details exactly? Basically the EXE has has a stub that runs and passes
it off to .NET. .NET then grabs your EXE and starts execution of the UL via
JIT.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/