Compiler Error C3607

'calling convention' : calling convention unavailable

When using DllImport on a function, the function cannot be declared with the __fastcall or thiscall calling convention.