How do I pass a pointer to a pointer to a struct as a function parameter in C#?
I am trying to use a function from a DLL which has one of its arguments as a double pointer. For e.g.,
struct mystruct
{
int a;
char b;
};
[DllImport("mydll.dll")]
private static extern int func_name(int a, char b, mystruct** c);
I guess the correct way to use a pointer like int *a is ref int a. Is there anything similar for int **a?