DosCreateThread: Difference between revisions
Appearance
m Ak120 moved page OS2 API:CPI:DosCreateThread to DosCreateThread |
mNo edit summary |
||
Line 3: | Line 3: | ||
=== Parameters === | === Parameters === | ||
; tid - | ; tid - PTID - output : Thread ID | ||
; function - | ; function - PFNTHREAD - input : Function to run in new therad | ||
; parameter - [[ULONG]] - input : Parameter passed to function | ; parameter - [[ULONG]] - input : Parameter passed to function | ||
; flags - ULONG - input : Flags for the new thread | ; flags - ULONG - input : Flags for the new thread | ||
Line 20: | Line 20: | ||
=== Notes === | === Notes === | ||
;OS Version Introduced:OS/2 1.0 | ;OS Version Introduced: OS/2 1.0 | ||
== See Also == | == See Also == |
Revision as of 06:48, 10 February 2017
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
Prototype
APIRET DosCreateThread( PTID tid, PFNTHREAD function, ULONG parameter, ULONG flags, ULONG stack_size );
Define C/C++
INCL_DOSPROCESS
Notes
- OS Version Introduced
- OS/2 1.0