OpenThread() through diiferent thread numbers ?
Posted
by user354641
on Stack Overflow
See other posts from Stack Overflow
or by user354641
Published on 2010-05-31T13:52:18Z
Indexed on
2010/05/31
16:23 UTC
Read the original article
Hit count: 206
delphi
Hi there .
I'm confusing about opening different threads with OpenThread Function and examining them with NtQueryInformationThread
native function .
I have no problem with NtQueryInformationThread
& I can examine them finely.
the problem is I don't know how to loop through different number of threads using OpenThread
(with SetDebugPrivilege Consideration) .
suppose we have different threads from number 5100 to 5200 & we want to examine them sequentially : for example 5100, 5101, 5102, 5103, 5104, 5105 ... 5200 ... .
I don't know how to use OpenThread
Function in delphi in right way ... .
I'm using this syntax & I found it wrong :
OpenThread(THREAD_ALL_ACCESS,false,(DWORD)5100)
. if anyone could guide me how to use OpenThread though different number of threads it would be great .
thanks alot .
© Stack Overflow or respective owner