public static void Suspend(Control control) { if (!control.IsDisposed) { if (control.InvokeRequired) { SuspendCallback call = new SuspendCallback(Suspend); control.FindForm().Invoke(call, new object[] { control }); } else { LockWindowUpdate(control.Handle); } } }
private static extern void RegisterPlumbing(HelloCallback onHello, PingCallback onPing, SuspendCallback onSuspend, ResumeCallback onResume);