What if I installed on drive W
There is the GetSpecialFolderLocation API function and similar ones, which will help you finding the correct path to the system folder.
If this is a 32-bit DLL, it must be put into the SysWOW64 folder on Windows x64 Editions.