rem: unsigned hdl, tid, flags;
add: unsigned hdl, tid;
context: NsCreateThread(void *arg, long stacksize, Ns_Thread *resultPtr){    ThreadArg *argPtr;    unsigned hdl, tid, flags;    flags = (resultPtr ? 0 : CREATE_SUSPENDED);    argPtr = ns_malloc(sizeof(ThreadArg));    argPtr->arg = arg;    argPtr->self = NULL;    hdl = _beginthreadex(NULL, stacksize, ThreadMain, argPtr, flags, &tid);    if (hdl == 0) {    	NsThreadFatal("NsCreateThread", "_beginthreadex", errno);    }    if (resultPtr == NULL) {	CloseHandle((HANDLE) hdl);    } else {	argPtr->self = (HANDLE) hdl;	ResumeThread(argPtr->self);	*resultPtr = (Ns_Thread) hdl;    }}