Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于大小和指针变量,似乎 NtQueryInformationThread 需要 x86 的 DWORD 和 x64 的 DWORD64 ?
我怎样才能使它通用在 x86 和 x64 中编译?LPVOID 似乎没有帮助,因为它只是给了我不正确的结果。
好的,刚刚发现使它成为 LPVOID 使它可以跨架构编译。
DWORD ntStatus = NtQueryInformationThread(hTemporaryHandle, ThreadQuerySetWin32StartAddress, dwStartAddress, sizeof(LPVOID), NULL);
wheredwStartAddress也是LPVOID根据目标环境指向 DWORD 或 DWORD64 变量。
dwStartAddress
LPVOID