The EXIT_THREAD_DEBUG_INFO structure contains an exiting thread’s exit code.
typedef struct _EXIT_THREAD_DEBUG_INFO { // etdi DWORD dwExitCode; } EXIT_THREAD_DEBUG_INFO;
DEBUG_EVENT