Import C dll in C# , how to convert short** type
See the question and my original answer on StackOverflowThe C side-of-things is usually not enough to be sure, but after reading the comment, it should be something like this:
[DllImport("my.dll")]
private extern static int ReadAnswer(ref ushort objectID, out IntPtr answerBuf, out ushort answerBufferSize);