Back to main

 

Function 51 - create stream

 

Options:

·         eax = 51 - function number

·         ebx = 1 - the only subfunction

·         ecx = address of the stream entry point (initial eip)

·         edx = thread stack pointer (initial esp)

Return value:

·         eax = -1 - error (there are too many threads in the system)

·         otherwise eax = TID - stream identifier

 

Constants for registers:

   eax - SF_CREATE_THREAD (51)