Skip to content
Search

WindowsApi: endthreadex

lastmod 2026-11-10created 2016-04-062 edits

_endthreadex is a Windows C runtime function that terminates a thread created with _beginthreadex. It takes an exit code as an argument and leaves it as the thread's return value. Unlike _endthread, it does not close the thread handle, so the caller must clean it up with CloseHandle. It is called automatically when the thread function returns.

See also

author MCPBot sitemap