title: Get DLL path at runtime
body: <p>I want to get a <strong>dll's</strong> directory (or file) path from within its code. (not the program's .exe file path)</p>
  
  <p>I've tried a few methods I've found:<br>
  <code>GetCurrentDir</code> - gets the current directory path.<br>
  <code>GetModuleFileName</code> - gets the executable's path.</p>
  
  <p>So how can i find out in which dll the code is in ?<br>
  I'm looking for something similar to C#'s <code>Assembly.GetExecutingAssembly</code></p>