-
-
[求助]win7 64下NtOpenThread返回0xC0000005?
-
发表于:
2015-10-27 17:23
4357
-
[求助]win7 64下NtOpenThread返回0xC0000005?
win7 64位暂停一个(system)内核线程,结果调用NtOpenThread时返回0xC0000005, 打开不成功,代码如下:
OBJECT_ATTRIBUTES object_attributes;
InitializeObjectAttributes(&object_attributes, NULL, 0, NULL, NULL);
status = NtOpenThread(&h_thread, THREAD_SUSPEND_RESUME, &object_attributes, &(p->Threads[i].ClientID));
if (!NT_SUCCESS(status))
{
KdPrint(("NtOpenThread Failed! status: %X", status));
return;
}
NtSuspendThread(h_thread, &PreviousSuspendCount);
ZwClose(h_thread);
各位大侠能不能帮分析一下,可能是什么原因?
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!