Decompile fn_07647 (?SetDebuggerThreadName@?A0x7a5898f9@@YAXIPBD@Z)

Batch #16088 by Yommy: 1 byte-identical, 0 confirmed by peer review.

- fn_07647 ?SetDebuggerThreadName@?A0x7a5898f9@@YAXIPBD@Z: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-10 13:48:03 +00:00
commit f99119f1f7

View file

@ -4,12 +4,23 @@
#include <utility>
namespace {
struct ThreadNameInfo {
DWORD type;
const char* name;
DWORD threadId;
DWORD flags;
};
// OFFSET: 0x00737510
// FUNCTION: fn_07647
void SetDebuggerThreadName(unsigned id, const char* name) {
ULONG_PTR arguments[4] = {0x1000, reinterpret_cast<ULONG_PTR>(name), id, 0};
ThreadNameInfo info;
info.type = 0x1000;
info.name = name;
info.threadId = id;
info.flags = 0;
__try {
RaiseException(0x406D1388, 0, 4, arguments);
RaiseException(0x406D1388, 0, sizeof(info) / sizeof(ULONG_PTR), reinterpret_cast<ULONG_PTR*>(&info));
} __except (EXCEPTION_EXECUTE_HANDLER) {
}
}