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