这个 DLL 是托管的还是非托管的? [英] Is this DLL managed or unmanaged?

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

推荐答案

您可以查看 PE 头信息,了解 DLL 中包含什么类型的信息.这篇文章详细描述了如何完成此操作.

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天全站免登陆