add [In] attribute on callback function

Fixes the issue on Windows, not on Mono?