License a dll

I have a dll i created before, i want to license it, i mean the user can't run or use it without this license.
He will download the application that contain this dll file then send me a number "his id", i make for him the license file and send to him to be able to run the application and can't share it with others.

Based on this idea i want you give me good examples about licensing a dll.

Who is Participating?
amrelgarhyAuthor Commented:
Your links was helpfull thanks.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.