|
-
Nov 3rd, 2000, 04:03 PM
#1
Thread Starter
Lively Member
I create a process with CreateProcess() API function. In this step, I can get process id and thread id from the function. My problem is I can't terminate the process I just created because I don't know how to do (use what API functions). Anyone please help me. Thanks in advance.
-
Nov 3rd, 2000, 04:25 PM
#2
Monday Morning Lunatic
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 3rd, 2000, 09:14 PM
#3
Use the TerminateProcess api function along with, as parksie suggested, the CloseHandle api function.
Code:
Public Declare Function CloseHandle Lib "Kernel32" (ByVal Handle As Long) As Long
Public Declare Function TerminateProcess Lib "Kernel32" (ByVal hProcess As Long, ByVal uExitCode As Long) As Long
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|