| 62 | } |
| 63 | |
| 64 | DWORD CThreadFunctions::GetThreadStartAddress(HANDLE hThread) |
| 65 | { |
| 66 | DWORD dwCurrentThreadAddress = 0; |
| 67 | auto ntStatus = g_winapiApiTable->NtQueryInformationThread(hThread, ThreadQuerySetWin32StartAddress, &dwCurrentThreadAddress, sizeof(dwCurrentThreadAddress), NULL); |
| 68 | if (!NT_SUCCESS(ntStatus)) |
| 69 | { |
| 70 | DEBUG_LOG(LL_ERR, "GetThreadStartAddress fail! Thread: %p Status: %p", hThread, ntStatus); |
| 71 | return dwCurrentThreadAddress; |
| 72 | } |
| 73 | return dwCurrentThreadAddress; |
| 74 | } |
| 75 | |
| 76 | DWORD CThreadFunctions::GetMainThreadId() |
| 77 | { |
nothing calls this directly
no outgoing calls
no test coverage detected