Hello, I'm Nour Tamer, basic programmer. I know some codes turning basic programs into cool programs.

I'm doing Windows 7 Verification. After you login you verify your Windows by using Admin account to access windows

I'm trying to kill Windows Main Access (explorer.exe) but it didn't worked because it restarts by itself.

Here's the code that i wrote

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim proc = Process.GetProcessesByName("explorer")
        For i As Integer = 0 To proc.Count - 1
            proc(i).Kill()
        Next i
    End Sub

I know that website have enough experts to Solve my problem

Give me any code to test explorer.exe is killed or not.

Thanks

Nour T.

P.S If i posted in Wrong topic than i'm sorry :S

I don't think explorer.exe can be removed -- it's an integral part of the operating system. See this article about a lawsuit.

This is not advisable, but if you really need to, I found this code

Public Declare Function TerminateProcess Lib "kernel32" (ByVal hProcess As
IntPtr, ByVal uExitCode As UInteger) As Integer

For Each ObjPro As Process In Process.GetProcessesByName("EXPLORER")
    TerminateProcess(ObjPro.Handle, 1)
    Do Until ObjPro.HasExited = True
    Application.DoEvents()
Loop

Next