0

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

Edited by Nour T.

3
Contributors
2
Replies
13
Views
3 Years
Discussion Span
Last Post by ryanjayson
0

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
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.