Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function is an application-defined function that serves as the starting address for a thread.
Specify this address when calling the CreateThread function.
The LPTHREAD_START_ROUTINE type defines a pointer to this callback function.
ThreadProc is a placeholder for the application-defined function name.
DWORD ThreadProc(LPVOID lpParameter);
Parameters
- lpParameter
[in] Thread data passed to the function using the lpParameter parameter of the CreateThread function.
Return Values
The function should return a value that indicates its success or failure.
Remarks
A process can obtain the return value of the ThreadProc of a thread it created with CreateThread by calling the GetExitCodeThread function.
Requirements
OS Versions: Windows CE 1.01 and later.
Header: Developer defined.
Link Library: Developer defined.
See Also
CreateThread | GetExitCodeThread
Send Feedback on this topic to the authors