Results 1 to 2 of 2

Thread: Thread Enumeration

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Ontario, Canada
    Posts
    79
    Hey Everyone...

    Does anyone know how to enumerate and get the handle to a thread and terminate it?

    For Example, I have a process that has 3 threads associated with it. I would like to enumerate the threads and end each one manually and indivdually.

    Any help would be great!

    Corey

  2. #2
    Member
    Join Date
    Jul 1999
    Posts
    42
    I only known a API call to get the thread ID from a window handle that was create by the thread:

    Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long

    lpdnProcessId can be NULL. Maybe this can be a starting point for your search.

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