title: How to Unload DLL from memory in C?
body: <p>How to unload DLL from memory. I used FreeLibrary but it is still loaded</p>
  
  <pre><code>HINSTANCE hGetProcIDDLL = LoadLibrary("path.dll");
  f_funci func = (f_funci)GetProcAddress(hGetProcIDDLL, "method");
  int x = func();
  FreeLibrary(hGetProcIDDLL);
  </code></pre>
  
  <p>I used <code>UnmapViewOfFile</code> and <code>FreeLibraryAndExitThread</code> but it still in memory too</p>