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