Partager via


ThreadProc (Windows Embedded CE 6.0)

1/6/2010

This function is a placeholder for 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.

Syntax

DWORD WINAPI ThreadProc(
  LPVOID lpParameter
);

Parameters

  • lpParameter
    [in] Thread data passed to the function using the lpParameterparameter of the CreateThread function.

Return Value

Nonzero indicates success. Zero indicates 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

Header Developer Implemented
Library Developer Implemented
Windows Embedded CE Windows CE 1.01 and later

See Also

Reference

Process and Thread Functions
CreateThread
GetExitCodeThread