i guess you'll need to create an asm wrapper to make the call.That's what I thought. Thank you Skalogryz
but if you target 64-bit you don't need to do anything.
That's my question: is there a way to tell FPC to use MS C's fastcall convention when calling a function ?