uninstall时要删除一个dll。由于已经被加载,所以不能delete。
我想FreeLibrary,可是GetModuleHandle("f:\\temp\\bin\\bin\\webPicker.dll")总是返回为0,而webPicker.dll肯定已经加载(我能看到),不能手工删除也能证明。
这是为什么????

解决方案 »

  1.   

    GetModuleHandle只能取回进程空间内的
    试试FreeLibrary
      

  2.   

    或者在你的程序中虚连接该模块,然后用GetModuleHandle应该可以取到
      

  3.   

    to ahalf(ahalf) 
    能tell me how to 虚连接该模块
      

  4.   

    to sxmzmxh(哥舒帶菜刀) 
    不行
    我试过
      

  5.   

    The GetModuleHandle function retrieves a module handle for the specified module if the file has been mapped into the address space of the calling process.
    说的很清楚了