DosCreateThread: Difference between revisions
Appearance
Myrkraverk (talk | contribs) Reformatting (not much of new info) |
mNo edit summary |
||
Line 47: | Line 47: | ||
[[OS2 API:CPI | Back to Control Programming]] | [[OS2 API:CPI | Back to Control Programming]] | ||
[[Category:The OS/2 API Project]] |
Revision as of 23:34, 28 October 2011
DosCreateThread
- DosCreaeThread( tid, function, parameter, flags, stacksize )
- Create another thread that runs function.
Parameters
- tid - PTID - output
- Thread ID
- function - PFNTHREAD - input
- Function to run in new therad
- parameter - ULONG - input
- Parameter passed to function
- flags - ULONG - input
- Flags for the new thread
- stacksize - ULONG - input
- Stack size for the new thread
Constants
None
Retuns
Prototype
APIRET DosCreateThread( PTID tid, PFNTHREAD function, ULONG parameter, ULONG flags, ULONG stack_size );
Module
Define C/C++
INCL_DOSPROCESS
Export Name/Ordinal
Calling Convention
Example Code
Relater Functions
Notes
OS Version Introduced
OS/2 1.0