Export (0) Print
Expand All

ThreadProc

Windows Mobile 6.5
A version of this page is also available for
4/8/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.


DWORD WINAPI ThreadProc(
  LPVOID lpParameter
);

lpParameter

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

Nonzero indicates success. Zero indicates failure.

A process can obtain the return value of the ThreadProc of a thread it created with CreateThread by calling the GetExitCodeThread function.

HeaderDeveloper Implemented
LibraryDeveloper Implemented
Windows Embedded CEWindows CE 1.01 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

ADD
Show:
© 2014 Microsoft