The API reference in question is located here.
I need to know how to properly DLLImport and then use this in vb:
const bctbx_list_t* linphone_core_get_calls ( LinphoneCore * lc )
The part I'm having trouble with is the const bctbx_list_t*
return value. I tried declaring the dllimport like this:
<DllImport(LIBNAME, CallingConvention:=CallingConvention.Cdecl)>
Private Shared Function linphone_core_get_calls(lc As IntPtr) As List(Of IntPtr)
End Function
and then using it like this:
Dim CurrentCallList As List(Of IntPtr) = linphone_core_get_calls(_LinPhoneCore)
which compiles but gives me an error:
Cannot marshal 'return value': Generic types cannot be marshaled.
Any help would be greatly appreciated.