void *privdata, int flags)
{
struct handle *h = snew(struct handle);
+ DWORD in_threadid; /* required for Win9x */
h->output = FALSE;
h->u.i.h = handle;
add234(handles_by_evtomain, h);
CreateThread(NULL, 0, handle_input_threadfunc,
- &h->u.i, 0, NULL);
+ &h->u.i, 0, &in_threadid);
h->u.i.busy = TRUE;
return h;
void *privdata, int flags)
{
struct handle *h = snew(struct handle);
+ DWORD out_threadid; /* required for Win9x */
h->output = TRUE;
h->u.o.h = handle;
add234(handles_by_evtomain, h);
CreateThread(NULL, 0, handle_output_threadfunc,
- &h->u.i, 0, NULL);
+ &h->u.i, 0, &out_threadid);
return h;
}