This code below is used to block run certain applications. It works, but to make the effect visible you need to restart the machine.
I would like to do this without having to restart the machine.
How can I do this without a restart?
Is there a possibility of reboot machine without restarting?
Thanks in advance.
private void blockRunApp()
Registry.SetValue("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer", "DisallowRun", 1);
rkey = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\DisallowRun");
Quote:Is there a possibility of reboot machine without restarting?
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)