为什么OpenProcess没有返回值了
提示viod *_cdecl OpenProcess(unsigned long,int,unsigned long)
用的VC6.0  

解决方案 »

  1.   

    有返回值OpenProcessThe OpenProcess function opens an existing process object.
    HANDLE OpenProcess(
      DWORD dwDesiredAccess,
      BOOL bInheritHandle,
      DWORD dwProcessId
    );
      

  2.   

    int zhuru(unsigned long pid,char DllName,char Dllpath,char DllFouction){

             int PH;
             ph=OpenProcess(2035711,0,pid);//鼠标移动到函数上显示
                                        // viod *_cdecl OpenProcess(unsigned long,int,unsigned long)

      

  3.   

    该函数原型是有返回值的,如果你非要声明为void,并且动态找到该函数的地址,也可以正常调用,不会出错误。
    本质上而言,就是调用该函数后,你不关心eax的内容(返回值放在eax中)。
      

  4.   

    当然有返回值,返回句柄(是一个长整形)。用void也可以调用罢了。