初接触劫持,请教下各位

void hook()
{
    DetourRestoreAfterWith();
    DetourTransactionBegin();
    DetourUpdateThread(GetCurrentThread());

    DetourAttach((void **)&oldsystem,newsystem);
    DetourTransactionCommit();
}

void unhook()
{
    DetourTransactionBegin();
    DetourUpdateThread(GetCurrentThread());
    DetourDetach((void **)&oldsystem,newsystem);
    DetourTransactionCommit();
}

想请教下各位这两段代码,为什么Detour开头的函数都说没有定义,我已经编译好了detour3.0,而且将detour.h跟detours.lib都复制到了相应目录

posted @ 2017-04-16 16:38  吴智枫  阅读(214)  评论(0编辑  收藏  举报