双击时,Windows应用程序如何在内部执行 [英] how windows applications executes internally when it is double clicked

查看:73
本文介绍了双击时,Windows应用程序如何在内部执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

双击时Windows应用程序如何在内部执行

解决方案

当双击基于.Net的可执行文件时, _CorExeMain 首先调用函数。每个托管的.Net可执行文件在CLR头中都有一个入口点(Main方法)。此函数初始化CLR,然后在程序集的CLR头中找到入口点,然后开始执行。 _CorExeMain Function [ ^ ]详细信息可以在MSDN上找到。

how windows applications executes internally when it is double clicked

解决方案

When a .Net based executable is double clicked, _CorExeMain function is called first. Each managed .Net executable will have a entry point (Main method) in the CLR header. This function initializes CLR and then locates entry point in the assembly's CLR header and then begins execution. _CorExeMain Function[^] details can be found here on MSDN.


这篇关于双击时,Windows应用程序如何在内部执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆