title: Why parameter aProcesses set 1024 in EnumProcesses?
body: <p>I use EnumProcesses to get process and I just find all the example set aProcesses equal to 1024 or 1024*2</p>
  
  <p>[delphi] code like this :</p>
  
  <pre><code>uses PsAPI;
  
  var
    cbNeeded : DWORD;
    aProcesses : array[0..1024] of DWORD;
  begin
  
    EnumProcesses(@aProcesses, sizeof(aProcesses), &amp;cbNeeded);
    //use PID do something
  
  end;
  </code></pre>
  
  <p>so my question is why set aProcesses equal to 1024 , 1024 is the max number of processes ? </p>