Results 1 to 3 of 3

Thread: Emegency Help..Pleaseee

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    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.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Mashin' on the motorway
    Try CloseHandle().
    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

  3. #3
    Use the TerminateProcess api function along with, as parksie suggested, the CloseHandle api function.

    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

Click Here to Expand Forum to Full Width