想写一个卸载进程指定dll的一个工具。进程加载的dll已找到!就是不知如何解除dll与进程的关系。不知要用到那些api,望写过着方面的高人指点一下!
谢谢!

解决方案 »

  1.   

    FreeLibrary
    The FreeLibrary function decrements the reference count of the loaded dynamic-link library (DLL) module. When the reference count reaches zero, the module is unmapped from the address space of the calling process and the handle is no longer valid. BOOL FreeLibrary(
      HMODULE hLibModule   // handle to loaded library module
    );
      

  2.   

    You need enject a remote thread to the target progress , at the remote thread , load FreeLibrary function.