private void button7_Click(object sender, EventArgs e) { if (!DevIoCore.IoSetUnloadAccess(checkBox1.Checked)) { MessageBox.Show("Ошибка!"); } }
private void button2_Click(object sender, EventArgs e) { if (!DevIoCore.IoStopService()) { MessageBox.Show("Ошибка!"); } }
private void button5_Click(object sender, EventArgs e) { if (DevIoCore.IoRemoveAllPathsFromProtection()) { } else { MessageBox.Show("Ошибка!"); } }
private void button6_Click(object sender, EventArgs e) { string physicalPath; bool res = DevIoCore.LogicalPathToPhysical(textBox1.Text, out physicalPath); if (!res) { MessageBox.Show("Ошибка!"); } textBox1.Text = physicalPath; }
private void button4_Click(object sender, EventArgs e) { bool res; if (DevIoCore.IoRemovePathFromProtection(Convert.ToUInt32(textBox1.Text), out res)) { textBox2.AppendText(res.ToString()); } else { MessageBox.Show("Ошибка!"); } }
private void button3_Click(object sender, EventArgs e) { UInt32 uk; if (DevIoCore.IoAddPathForProtection(textBox1.Text, checkBox1.Checked, out uk)) { textBox2.AppendText(uk.ToString()); } else { MessageBox.Show("Ошибка!"); } }