GetThreadContext在win7 x64上返回87

时间:2016-10-25 13:41:34

标签: c++ windows-7-x64

我试图在函数中运行此代码,但GetThreadContext返回错误:87

CONTEXT cxt;
SuspendThread(hThread);

ZeroMemory(&cxt, sizeof(cxt));
cxt.ContextFlags = CONTEXT_FULL;
if (!GetThreadContext(hThread, &cxt)) {
    printf("GetThreadContext getlasterror: %d", GetLastError());
    goto finish;
}

0 个答案:

没有答案