一、函数解释
(参见MSDN)
The CreateThread function creates a thread to
execute within the virtual address space of the calling
process.
To create a thread that runs in the virtual address space of
another process, use the CreateRemoteThread function.
HANDLE CreateThread(
LPSECURITY_ATTRIBUTES , SIZE_T , LPTHREAD_START_ROUTINE , LPVOID , DWORD , LPDWORD );
Parameters
lpThreadAttributes
[in] Pointer to a SECURITY_ATTRIBUTES structure that
determines whether the returned handle can be inherited by child
processes. If lpThreadAttributes is NULL, the handle cannot
be inherited.
The lpSecurityDescriptor member of the structure
specifies a security descriptor for the new thread. If
lpThreadAttributes is NULL, the thread gets a default
security descriptor. The ACLs in the default security descriptor