系统如何确定给定DLL是否是一个.NET的DLL? [英] How does the system determine whether a given DLL is a .NET DLL?

查看:161
本文介绍了系统如何确定给定DLL是否是一个.NET的DLL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

系统如何确定给定DLL是否是一个.NET的DLL或一个Win32 DLL?

How does the system determine whether a given DLL is a .NET DLL or a Win32 DLL?

推荐答案

DLL和Windows .exe文件符合移植可执行(PE)文件格式(见的此处了解详细信息)。

DLL and Exe files on Windows conform to the Portable Executable (PE) file format (see here for details).

的.Net的元数据被存储在在CLR Data部分PE文件。

.Net meta data is stored in the PE file in the CLR Data section.

如果PE文件中有一个CLR数据部分则DLL或EXE是一个.NET程序集。如果没有的话,AFAIK,它不是

If the PE file has a CLR Data section then the DLL or Exe is a .Net Assembly. If it doesn't then, AFAIK, it isn't.

请参阅这里对PE文件格式的详细信息。

See here for more details on the PE file format.

这篇关于系统如何确定给定DLL是否是一个.NET的DLL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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