Exemple #1
0
        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);
                }
            }
        }
Exemple #2
0
 private static extern void df_run(ref DfProcess prc, ref RunResult res, StringBuilder comment);
Exemple #3
0
 private static extern void df_free(ref DfProcess prc);
Exemple #4
0
 private static extern void df_add_arg(ref DfProcess prc, string arg);