A function in dll is defined like this:
int DLLDIR nvcp_ep_to_buf(int ep_id, unsigned char** o_buf);
I want to call this function using dllimport
, how could I declare this function in c#, and how can I call this function? If I call this function in c++, I allocate memory for o_buf
and then call this function, it works.