I try to use ctypes for using DLL on python program.
This is C# code and function's args that I want to use in python:
[DllImport("test.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.Cdecl)]
public static extern int function(
byte[] filename,
byte[] name,
IntPtr result,
out IntPtr UnmanagedStringArray,
out int iStringsCountReceiver);
The code below is my python code. I searched several sites but I could not find hint about argtypes. Please help me use DLL in python.
mydll = c.cdll.LoadLibrary("test.dll")
func = mydll['function']
func.argtypes=( ....)