(LPSECURITY_ATTRIBUTES lpThreadAttributes,//pointer to thread security attributes
DWORD dwStackSize,//initial thread stack size, in bytes
LPSECURITY_START_ROUTINE lpStartAddress,//pointer to thread function
LPVOID lpParameter,//argument for new thread
DWORD dwCreationFlags,//creation flags
LPDWORD lpThreadId //pointer to returned thread identifier
)
其中,在本实验阶段比较重要的参数是第三和第四个:
a)第三个参数是一个指向函数的指针,所以应传入的参数应为函数的地址,如&Func的形式.
而这个传入的参数,则必须被声明成为:
DWORD WINAPI threadFunc(LPVOID threadArgu);