"Augie" <au************@hotmail.com> wrote in message
news:OM**************@TK2MSFTNGP12.phx.gbl...
This might not be the correct place to ask this question... Then again
I'm not sure where else to ask this...
When you build a DLL to use with "OUR" code... How do you prevent others
from using the DLL?
On some fine (or terrible, depending on your point of view) day there may be
a "secure" version of Windows which allows only "trusted" applications to
run.
Until then, your are pretty much on your own. In the DLL you can call
GetModuleFilename() or something to find out who is calling you and perhaps
decide to accommodate him or not but nothing you can come up with is going
to be foolproof.
You might want to look into hardware "dongles" like the ones sold by Hasp
and Sentinel which don't out of the box restrict the caller's per se but try
to insure that only licensed end-users run the application.
Regards,
Will