例えば
C++ コード
extern "C" __declspec(dllexport) void __cdecl test(unsigned char *inputBytes,int inputLEN, const unsigned char **outputBytes,int &outputLEN) {............................}
C# ネイティブ
[DllImport("xxx.dll", EntryPoint = "test", CallingConvention = CallingConvention.Cdecl)]
private static extern void test(IntPtr inputBytes, int inputLEN,out IntPtr outputBytes,out int outputLEN);
Java Jネイティブ
?