The problem is not in the nif file, but the loading modules on loadlibrarya, have several methods to execute or load a dll, some arguments not ducomentados or simply make a loadlibrarya call by another path because a path is like a port 80, there are other ports to be explored, plus you will be able to understand your Windows APIs, LoadLibrary function. Loads the specified module
if you know how to compile each function easier to solve the problem