Exemple #1
0
 public void Dispose()
 {
     if (!this.closed)
     {
         this.closed = true;
         Imports.CloseHandle(this.hProcess);
     }
 }
Exemple #2
0
 private bool Close()
 {
     if (!this.closed)
     {
         this.closed = true;
         return(Imports.CloseHandle(this.procHandle) != 0);
     }
     return(true);
 }