Passing Multiple Parameters when using _beginthreadex
Hi,
This is the Code when I'm calling the function...
dwServerThread = _beginthreadex
( NULL , 0 , ClientAccept ,
(void *) sListen , 0 , &uThreadID );
The function it's calling is
unsigned __stdcall ClientThread(SOCKET *sListen)
{
return(0);
}
Now, what I want to do is to be able to pass another parameter as well as the sListen parameter...
Does anyone know how to do this....?
PS This code works no problem, but I can only send one parameter.
Regards,
IJ...