开发者

what is the difference between an ordinary exe file and the exe file generated from .net windows applications

what is the difference between an ordinary exe file a开发者_如何学运维nd the exe file generated from .net windows applications.


EXE generated by .NET has a normal PE header but then has instructions to load MSCorEE.DLL. See my answer here.

Basically according to CLR via C# .NET EXE's Managed Module contains (in this order):

  • PE32 or PE32+ header
  • CLR header
  • Metadata
  • IL Code


None, they are both executable files.

EDIT:

OK, I can see that wasn't very helpful. In one respect they are the same since they both trigger the same action from the operating system to start with, but as has been explained, there is deeper magic going on and that's more likely to be what the OP wanted to know.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜