Page 2 of 2

Posted: Sun May 16, 2004 3:49 pm
by fweil
dmoc,

By usong such a code :

Code: Select all

  For i = 0 To $FFFFFF
    If GetThreadTimes_(i, @CreationTime.FILETIME, @ExitTime.FILETIME, @KernelTime.FILETIME, @UserTime.FILETIME)
        Debug "Thread " + Str(i) + " found"
    EndIf
  Next
  CallDebugger
End
(caution : the For limit value !)

you will have some returning thread ids. OK. But what I don't know is if they are unique IDs belonging to all running processes, or IDs from the app which runs currently.

Just a question ... because it is not clear to me by reading the Win32 API guide.

Posted: Mon May 17, 2004 7:37 am
by dmoc
My guess is they are only for the current process, for security reasons, but I check later. Thanks for the tip.