title: Is it possible to find the path to a loaded DLL on Windows in GO?
body: <p>I have the following GO code:</p>
  
  <pre><code>package main
  
  import (
      "syscall"
  )
  
  func main() {
      var mod, _ = syscall.LoadLibrary("user32.dll")
  }
  </code></pre>
  
  <p>Which successfully loads the <code>user32.dll</code> file. (This is a modified version of an example I found online).</p>
  
  <p>However I do not know where on the filesystem this DLL exists. I have been searching for a way for Go to be able to tell me that through the <code>syscall</code> libs, but have not found a way to do it.</p>
  
  <p>Does anyone know of a way to get the path to the DLL that was loaded?</p>