Beginthread

The beginthread function creates a new thread of execution within the current process.

It is part of the Microsoft Windows runtime library and is declared in the process.h header file.

If the value of stack_size is zero, the operating system creates a stack the same size as that of the main thread.

[1] The operating system passes Arg to Func when execution begins.

Returns the operating system handle of the newly created thread.