难道这个DLL托管或非托管?

难道这个DLL托管或非托管?

问题描述:

我之前你持有的DLL。只使用Win32 SDK中,你能告诉我,如果这个DLL是一个.NET程序集?

I hold before you a DLL. Using only the Win32 SDK, can you tell me if this DLL is a .NET assembly?

为什么呢?我们的应用程序加载的插件中的DLL的形式。我们正在努力扩展这些插件的定义,以允许.NET程序集,但该接口将是不同的,因此加载器将需要知道如果DLL托管或非托管加载之前。

Why? Our application loads plugins in the form of DLLs. We are trying to extend the definition of these plugins to allow for .NET assemblies but the interface will be different and thus the loader will need to know if the DLL is managed or unmanaged before loading it.

您可以检查哪些类型的信息都包含在DLL信息的PE头信息。这本文介绍如何做到这一点的详细

You can check the PE header information for the information about what type of information is contained in the DLL. This article describes how to accomplish this in detail.