/// <summary> /// Disconnect from application. /// </summary> public void Disconnect() { if (!IsConnected()) { return; } APIMethods.CloseHandle(this._handle); this._mainModuleAddress = 0; this._gcProcessHandle.Free(); this._handle = IntPtr.Zero; }