Hello, how to correctly pass a parameter to a stream function. That is, how to transfer "a" to the Func method? I read that the 4th parameter of the CreateThread method seems to be the field for the parameter.
int main(){ DWORD dID; HANDLE h; int a; h = CreateThread(NULL,0,Func,0,0,&dID); } DWORD WINAPI Func(LPVOID){ ....... }