public void Stop() { if (m_handle != IntPtr.Zero) { ApiFunctions.SendMessage(m_handle, CaptureMessage.WM_CAP_DRIVER_DISCONNECT, IntPtr.Zero, IntPtr.Zero); ApiFunctions.DestroyWindow(m_handle); m_handle = IntPtr.Zero; } GC.SuppressFinalize(this); }
public void Stop() { if (m_handle != IntPtr.Zero) { ApiFunctions.SendMessage(m_handle, CaptureMessage.WM_CAP_DRIVER_DISCONNECT, IntPtr.Zero, IntPtr.Zero); ApiFunctions.DestroyWindow(m_handle); m_handle = IntPtr.Zero; } GC.SuppressFinalize(this); }