Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem with Killing windows explorer?

I need to kill windows explorer's process (explorer.exe), for that

lets say i use a native NT method TerminateProcess

It works but the problem is that the explorer starts again, may be windows is doing that, anyway. When i kill explorer.exe with windows task manager, it doesn't come back, its stays killed.

I want to do whatever taskmanager is doing through my application.

Edit:
Thanks to @sblom i solved it, a quick tweak in the registry did the trick. Although its a clever hack, apparently taskmnager has a cleaner way of doing that, that said, i've decided to go with @sblom's way for now.

like image 351
Vivek Bernard Avatar asked Apr 03 '10 04:04

Vivek Bernard


People also ask

Why does Windows Explorer keep crashing?

If your Windows Explorer keeps crashing there is a chance that your PC is infected with malware. An infected PC is not safe to use and can be the reason behind the instability issues. After this Windows will reboot and begin the scan for malware on your PC.


1 Answers

From Technet:

You can set the registry key HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoRestartShell to 0, and it will no longer auto-restart.

like image 142
sblom Avatar answered Oct 06 '22 02:10

sblom