难道这个DLL托管或非托管? [英] Is this DLL managed or unmanaged?

查看:174
本文介绍了难道这个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.

这篇关于难道这个DLL托管或非托管?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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