Fix creating suspended thread and parse create_flags

This commit is contained in:
ssvine
2025-12-30 15:18:55 +03:00
parent 0370da327b
commit 57ad277158
7 changed files with 29 additions and 8 deletions

View File

@@ -971,6 +971,13 @@ union TEB_CROSS_TEB_FLAGS_UNION
USHORT SpareCrossTebBits : 16;
};
constexpr auto THREAD_CREATE_FLAGS_CREATE_SUSPENDED = 0x1;
constexpr auto THREAD_CREATE_FLAGS_SKIP_THREAD_ATTACH = 0x2;
constexpr auto THREAD_CREATE_FLAGS_HIDE_FROM_DEBUGGER = 0x4;
constexpr auto THREAD_CREATE_FLAGS_LOADER_WORKER = 0x10;
constexpr auto THREAD_CREATE_FLAGS_SKIP_LOADER_INIT = 0x20;
constexpr auto THREAD_CREATE_FLAGS_BYPASS_PROCESS_FREEZE = 0x40;
union TEB_SAME_TEB_FLAGS_UNION
{
USHORT SameTebFlags;