When I use the CreateThread API method, what do I need to do when I want to
pass more than one parameter where LPVOID lpParameter is passed?
When I use the CreateThread API method, what do I need to do when
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can create a structure that holds all relevant data and pass a pointer to an instance of that structure (filled with the appropriate parameters) to
CreateThread()In your thread creation function you will need to cast the
LPVOIDback to a pointer to your structure to use it.