Dll - 只能从我的工具中读取lib [英] Dll - can make the lib only read from my tool

查看:55
本文介绍了Dll - 只能从我的工具中读取lib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好代码项目。



i想知道我是否可以将我的lib文件只读给我的应用程序。



我还在学习并且做得很好但是这个想法来到我的可能这样做没有别的可以用它来做工具。



我正在使用c#编码。



谢谢



我的尝试:



研究但不确定我是否正在寻找正确的东西>

hello code project.

i was wondering if i could make my lib file read only to my application.

am still learning and doing well but this thought came to mine is this possible to do so no else can use it for there tool.

am using c# coding.

thanks

What I have tried:

researched but no sure if am looking at the right stuff >

推荐答案

嗯,有一个原因,如果 DLL 也称为共享库。

但是,您可以实现一种身份验证,以便仅启用允许的应用程序访问 DLL 功能(例如,只返回t h 生锈的句柄,经过身份验证的应用程序,而这些应用程序又必须使用这样的句柄来访问每个 DLL 函数)。
Well, there's a reason if DLLs are also called also shared libraries.
However you could implement a sort of authentication for enabling only allowed applications to access DLL functionality (e.g. return an handle just to thrusted, that is authenticated, applications, which in turn must use such a handle to access every DLL function).


这篇关于Dll - 只能从我的工具中读取lib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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