Hook API我使用的是一个HookImportFunctionsByName的代码,相信大家可能有看过。我需要实际能用的代码,而不是一些相关的连接。

解决方案 »

  1.   

    http://www.codeguru.com/shell/ShellLogging.html
    http://www.codeguru.com/shell/index.shtml
      

  2.   

    这些代码明显不是我要的,SHELL是SHELL,钩子是钩子呀
      

  3.   

    大家可参考这张帖子,
    http://www.csdn.net/expert/topic/918/918950.xml?temp=.1658594
    为什么我全局的API就不能钩到呢
      

  4.   

    我使用的hook API库参考的是http://www.codeproject.com/dll/hookimport.asp
    我现在想用它hook系统所有的ExitWindowExec函数而已。
      

  5.   

    ExitWindowExec,是个什么函数啊?MSDN里没有?
      

  6.   

    只有ExitWindowsEx,哪里有 什么ExitWindowExec
      

  7.   

    这是98下的user.exe里的一个函数,用与快速关机,MSDN里找不到的。
    NowCan:你来的正好,帮我看一下那段代码为什么注入不了到其他进程。
    some code:
    HOOKFUNCDESC hookfunc;
    PROC         porigfuns;
    hookfunc.pProc=(PROC)MySleep;
    hookfunc.szFunc="Sleep";
    // AfxMessageBox("install hook");
    HookImportFunctionsByName(g_hins,"Kernel32.dll",1,&hookfunc,&porigfuns,NULL);