Click here to Skip to main content
15,887,376 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 >
Posted
Updated 10-Nov-16 8:14am
Comments
Richard MacCutchan 10-Nov-16 12:17pm    
Make it a static library rather than a DLL and you do not need to release it to the public.

1 solution

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).
 
Share this answer
 
v2
Comments
Richard Deeming 10-Nov-16 11:46am    
"Thrusted" applications, eh? :)
CPallini 10-Nov-16 14:03pm    
Yes thrusted, you know, boosted, weaponed :-D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900