private void FormMain_FormClosing(object sender, FormClosingEventArgs e) { if (Program.IsProtected) { WndProtect.UnProtect(this.Handle); WndProtect.Free(); } }