Error while calling Win API function on x64
When you are calling Win API function (or function from a native DLL) on x64 you get this error:
An exception occurred when calling Function in Library name DLL library
This happens only if the code calling the DLL function is running on server. The reason for this is that the DLLFunction class is not supported on x64.