如何隐藏DLL中的导出功能 [英] How to hide the exporting functions in DLL

查看:125
本文介绍了如何隐藏DLL中的导出功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不希望用户通过Dependence在我的DLL中看到所有的导出功能,有没有办法呢?我使用C ++和MS Visual Studio来编译我的DLL。

I don't want user to see all the exporting functions through Dependence in my DLL, is there a way to do it? I complie my DLL with C++ and MS Visual Studio.

推荐答案

使用* .def文件,并使用NONAME属性来防止名称正在导出:请参阅从DLL中导出函数比名称 ...有一个这里的一个例子

Use a *.def file and use the NONAME attribute to prevent the name's being exported: see Exporting Functions from a DLL by Ordinal Rather Than by Name ... there's an an example here.

这篇关于如何隐藏DLL中的导出功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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