Microsoft Windows CE 3.0  

ThreadProc

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This function is an application-defined function that serves as the starting address for a thread. Specify this address when calling the CreateThreadfunction. The LPTHREAD_START_ROUTINE type defines a pointer to this callback function. ThreadProcis a placeholder for the application-defined function name.

DWORD WINAPI ThreadProc(
LPVOID
lpParameter
);

Parameters

lpParameter
Receives the thread data passed to the function using the lpParameterparameter of the CreateThreadfunction.

Return Values

The function should return a value that indicates its success or failure.

Remarks

A process can obtain the return value of the ThreadProcof a thread it created with CreateThreadby calling the GetExitCodeThreadfunction.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.01 and later      
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

CreateThread, GetExitCodeThread