Vb Terminate Process Hello everyone how are you,
I am trying to ake a vb program that i can use to terminate processes that are running. for example when i press ctrl + Alt + del, there are a list of programs that are running. I would like to be able to terminate all or even one of those programs. The problem is that i have tried using
Public Declare Function TerminateProcess Lib "kernel32" Alias "TerminateProcess" (ByVal hProcess As Long, ByVal uExitCode As Long) As Long
Public Declare Function TerminateThread Lib "kernel32" Alias "TerminateThread" (ByVal hThread As Long, ByVal dwExitCode As Long) As Long
Public Declare Function GetCurrentProcessId Lib "kernel32" Alias "GetCurrentProcessId" () As Long
Public Declare Function GetCurrentThreadId Lib "kernel32" Alias "GetCurrentThreadId" () As Long
but i have no idea how to use them. I have looked in the msdn library but i cant figure out what hprocess means. I understand that it is not good to do the code for someone and im not really asking for that, what i would like is if someone could please walk me though the functions above and help me understand how to figure out the arguments they accept. The msdn is good but for some reason i cant seem to find any detailed help on the usage of these functions. Can someone please help me with my problems.
Thank you |