If you go to scripting sites such as for example
www.mirc.net and
www.mircscripts.org you can download DLLs there and check their source, as people who want to submit DLLs are to include their source with the DLL. The reason for this is that this way the admins of the site can verify that there is no harmful code, and that you can learn from the code to make DLLs yourself.