Exemplo n.º 1
0
 public static IntPtr ExitCode(IntPtr handle)
 {
     try{
         return(new IntPtr(ProcessHolder.ExitCode(handle.ToInt32())));
     }catch (Exception) {
         //pass
     }
     return(new IntPtr(0));
 }
Exemplo n.º 2
0
 public static IntPtr ReadStandardErrorAll()
 {
     try{
         return(ProcessHolder.ReadStandardErrorAll());
     }catch (Exception) {
         //pass
     }
     return(new IntPtr(0));
 }
Exemplo n.º 3
0
 public static IntPtr ReadStandardError(IntPtr handle)
 {
     try{
         return(ProcessHolder.ReadStandardError(handle.ToInt32()));
     }catch (Exception) {
         //pass
     }
     return(new IntPtr(0));
 }
Exemplo n.º 4
0
 public static IntPtr SetWorkingDirectory(IntPtr handle, IntPtr value)
 {
     try{
         ProcessHolder.SetWorkingDirectory(handle.ToInt32(), Marshal.PtrToStringAuto(value));
         return(new IntPtr(TRUE));
     }catch (Exception) {
         //pass
     }
     return(new IntPtr(FALSE));
 }
Exemplo n.º 5
0
 public static IntPtr SetCreateNoWindow(IntPtr handle, IntPtr value)
 {
     try{
         ProcessHolder.SetCreateNoWindow(handle.ToInt32(), value.ToInt32() == 0?false:true);
         return(new IntPtr(TRUE));
     }catch (Exception) {
         //pass
     }
     return(new IntPtr(FALSE));
 }
Exemplo n.º 6
0
 public static IntPtr SetArguments(IntPtr handle, IntPtr arguments)
 {
     try{
         ProcessHolder.SetArguments(handle.ToInt32(), Marshal.PtrToStringAuto(arguments));
         return(new IntPtr(TRUE));
     }catch (Exception) {
         //pass
     }
     return(new IntPtr(FALSE));
 }
Exemplo n.º 7
0
 public static IntPtr Destroy(IntPtr handle)
 {
     try{
         ProcessHolder.Destroy(handle.ToInt32());
         return(new IntPtr(TRUE));
     }catch (Exception) {
         //pass
     }
     return(new IntPtr(FALSE));
 }
Exemplo n.º 8
0
 public static IntPtr WaitForExitWithTimeOut(IntPtr handle, IntPtr timeout_msec)
 {
     try{
         ProcessHolder.WaitForExit(handle.ToInt32(), timeout_msec.ToInt32());
         return(new IntPtr(TRUE));
     }catch (Exception) {
         //pass
     }
     return(new IntPtr(FALSE));
 }
Exemplo n.º 9
0
 public static IntPtr WaitForExit(IntPtr handle)
 {
     try{
         ProcessHolder.WaitForExit(handle.ToInt32());
         return(new IntPtr(TRUE));
     }catch (Exception) {
         //pass
     }
     return(new IntPtr(FALSE));
 }
Exemplo n.º 10
0
 public static IntPtr CloseStandardInput(IntPtr handle)
 {
     try
     {
         ProcessHolder.CloseStandardInput(handle.ToInt32());
         return(new IntPtr(TRUE));
     }
     catch (Exception)
     {
         //pass
     }
     return(new IntPtr(FALSE));
 }
Exemplo n.º 11
0
 public static IntPtr WriteStandardInput(IntPtr handle, IntPtr str)
 {
     try
     {
         ProcessHolder.WriteStandardInput(handle.ToInt32(), Marshal.PtrToStringAuto(str));
         return(new IntPtr(TRUE));
     }
     catch (Exception)
     {
         //pass
     }
     return(new IntPtr(FALSE));
 }
Exemplo n.º 12
0
 public static IntPtr SpawnWithRedirect(IntPtr filename, IntPtr arguments, IntPtr redirect_stndard_output, IntPtr redirect_standard_error)
 {
     try{
         return(new IntPtr(
                    ProcessHolder.SpawnWithRedirect(
                        Marshal.PtrToStringAuto(filename),
                        Marshal.PtrToStringAuto(arguments),
                        redirect_stndard_output.ToInt32() == 0?false:true,
                        redirect_standard_error.ToInt32() == 0?false:true)));
     }catch (Exception) {
         //pass
     }
     return(new IntPtr(ProcessHolder.INVALID_HANDLE));
 }
Exemplo n.º 13
0
 public static IntPtr Spawn(IntPtr filename, IntPtr arguments)
 {
     try
     {
         return(new IntPtr(
                    ProcessHolder.Spawn(
                        Marshal.PtrToStringAuto(filename),
                        Marshal.PtrToStringAuto(arguments))));
     }
     catch (Exception)
     {
         //pass
     }
     return(new IntPtr(ProcessHolder.INVALID_HANDLE));
 }
Exemplo n.º 14
0
 public static IntPtr DllDetachFunc_After_Hm866(IntPtr n)
 {
     ProcessHolder.Destroy();
     return(new IntPtr(0));
 }
Exemplo n.º 15
0
 public static IntPtr Finish()
 {
     ProcessHolder.Destroy();
     return(new IntPtr(TRUE));
 }