struct Structure{ char* pointer; int size; .....}.....while(event){ Structure.pointer = &something_pointer; Structure.size = &something_size; ....... HANDLE hThread = (HANDLE)_beginthread(0, 0, ThreadProcedure, &Structure, 0, 0);}