I'm not sure if it's a reason, but once I had the same error. In my case the reason was in that DLL function was actually named with additional suffix letter "A", and then digging through MS documentation I've found an explanation that MS uses desired function with one or another suffix depending on usage contents and data type. Adding that suffix was solved the problem.
This was not obvios because in DLL description there was no mentions at all and function name was given generally, i.e. without any suffix at all, assuming every user should be MS guru.
Sergey