title: OpenThread() through different thread numbers ?
body: <p>I'm confusing about opening different threads with OpenThread Function and examining them with <code>NtQueryInformationThread</code> native function .
  I have no problem with <code>NtQueryInformationThread</code> &amp; I can examine them finely.
  the problem is I don't know how to loop through different number of threads using <code>OpenThread</code> 
  (with SetDebugPrivilege Consideration) .
  suppose we have different threads from number 5100 to 5200 &amp; we want to examine them sequentially : for example 5100, 5101, 5102, 5103, 5104, 5105 ... 5200 ... .
  I don't know how to use <code>OpenThread</code> Function in delphi in right way ... .
  I'm using this syntax &amp; I found it wrong : </p>
  
  <pre><code>OpenThread(THREAD_ALL_ACCESS,false,(DWORD)5100)
  </code></pre>
  
  <p>.
  if anyone could guide me how to use OpenThread though different number of threads it would be great .</p>
  
  <p>thanks alot .</p>