title: Win32 equivalent of dlopen(NULL, ...)
body: <p>Is there a simple equivalent to <code>dlopen(NULL, ...)</code> on Windows?</p>
  <p>The behavior on POSIX (or at least Linux) is: the returned handle can be used to find exported symbols on the executable <em>as well as on dependent shared objects</em>. To put simply, following</p>
  <pre><code>void *lib = dlopen(NULL, RTLD_NOW);
  </code></pre>
  <p>doing <code>dlsym(lib, &quot;memcpy&quot;)</code> will return the symbol for <code>memcpy</code>.</p>
  <p>On win32, <code>GetModuleHandle(NULL)</code> is almost an equivalent, except that the set of dependent DLLs is not searched for symbols; <code>GetProcAddress(lib, &quot;memcpy&quot;)</code> returns <code>NULL</code>.</p>
  <p>Any idea? Note: of course, in my application, I don't want to merely access <code>memcpy</code>, but some more complicated symbol, and from a FFI.</p>