For complex types like triple pointers, I find the best approach is to go simple and marshal it as simple as IntPtr
[DllImport("Some.dll")] private static extern void func1(int a, out IntPtr ptr)
Once this function returns an IntPtr value, essentially char** will be displayed.
Using this value is almost impossible because we do not know the length. You will need to change your function signature to pass the length of the array before it can be used in managed code.
source share