APIRET rc; /* Return code */
PTID ThreadID; /* Thread identifier */
MYSTRUCT *ParmBlock; /* Initialization data */
rc = DosCreateThread(ThreadID, /* Create thread */
Thread, /* Entry point for thread */
ParmBlock, /* Parameters for thread */
0L, /* Start immediately */
8192); /* Stack size for thread */
This example shows the enhanced form of this function as implemented under OS/2 Version 2.0.