Also, see http://blogs.msdn.com/b/oldnewthing/archive/2011/01/06/10112270.aspx (“Processes, commit, RAM, threads, and how high can you go?”).
–
Bruce
On Oct 2, 2014, at 4:25 PM, Marion Bond wrote:
>
> DWORD is a platform independent type. It is the same size on 16-bit and 64-bit machines - and anything else that you have ever heard of.
>
> Different versions of Windows have had radically different algorithms for assigning PID. To be safe, simply use DWORD (32-bit unsigned integer) and don’t worry about the difference between the maximum number of processes and the range or values used for PID. If you are thinking about this, your design is probably wrong or you are over optimizing
>