#ifndef _NTPSAPI_H
// User processes and threads
#if (PHNT_MODE != PHNT_MODE_KERNEL)
// begin_rev
#define THREAD_CREATE_FLAGS_HIDE_FROM_DEBUGGER 0x00000004 // NtCreateThreadEx only
View code on GitHubThis flags indicates that the system should not notify debuggers attached to the target process about thread creation. This option also suppresses other debug events on the target thread for the entirety of its lifetime.
THREAD_CREATE_FLAGS_NONETHREAD_CREATE_FLAGS_CREATE_SUSPENDEDTHREAD_CREATE_FLAGS_SKIP_THREAD_ATTACHTHREAD_CREATE_FLAGS_LOADER_WORKERTHREAD_CREATE_FLAGS_SKIP_LOADER_INITTHREAD_CREATE_FLAGS_BYPASS_PROCESS_FREEZENtSetInformationThread with ThreadHideFromDebuggerNtWaitForDebugEvent