Casting to a struct from LPVOID - C
- by Jamie Keeling
Hello,
I am writing a simple console application which will allow me to create a number of threads from a set of parameters passed through the arguments I provide.
DWORD WINAPI ThreadFunc(LPVOID threadData)
{
}
I am packing them into a struct and passing them as a parameter into the CreateThread method and trying to unpack them by casting them…