Page 1 of 1

function 9 valid slot

Posted: Sat Mar 15, 2014 3:08 am
by catalinvasile
From what I understand, API function 9 takes in ECX the slot number of a thread and after the execution EAX should contain the maximum slot number.
Also in the remarks it states that:
"Returned value is not a total number of threads, because there can be free slots."
Is there a way function 9 would say if the slot number I'm asking for is a valid thread ?

Re: function 9 valid slot

Posted: Sat Mar 15, 2014 7:18 am
by 0CodErr
Yoг may check status of the thread slot: http://websvn.kolibrios.org/filedetails ... t#line-352
And if it is 9 then requested slot is free.