register DLL file, where should place the file?

hello everyone, when I register my DLL file on the other computer, I have to copy it into the solidworks folder (C:\...\Solidworks), anyother folder the program will not work, Why?

SolidworksApi macros