As I've written before, it's just a guess (I can't do any relevant tests).
Juts in case, in you are using a 32 bits program (i.e. 32 bits version of Lazarus.exe), the dll file should go in "C:\Windows\SysWOW64", not in "C:\Windows\System32".
** * EDIT *** If you using a 64 bits version of Windows 10, and if your dll file is a 32 bits version, of course...