public DfyzProc(string exeName, string workDir, List <string> args) { IntPtr ptr = df_new(exeName, workDir); _prc = (DfProcess)Marshal.PtrToStructure(ptr, typeof(DfProcess)); if (args != null) { foreach (string s in args) { df_add_arg(ref _prc, s); } } }
private static extern void df_run(ref DfProcess prc, ref RunResult res, StringBuilder comment);
private static extern void df_free(ref DfProcess prc);
private static extern void df_add_arg(ref DfProcess prc, string arg);