Does anyone know what the best way is to lock or license an ActiveX DLL? What I mean is that I want to create a DLL that can only be referenced by an "authorized" application.

I have thought about making the functions require that a password or key be passed to them. I was wondering if anyone else had any other ideas.