Ejemplo n.º 1
0
 function win32_fork($app, $params = '', $startDir = '')
 {
     $win32_idl = "\n\t\t[lib='shell32.dll'] int ShellExecuteA(int handle, char *operation, char *file, char *param, char *directory, int show);\n\t\t";
     $ffi = new ffi($win32_idl);
     $show = 7;
     //0: hided, 1: normal, 2: mini, 3:maxi, 4:inactive, 7:mini inactive
     $result = $ffi->ShellExecuteA(0, "open", tfb_shellencode($app), $params, tfb_shellencode($startDir), $show);
     return $result;
 }