title: How can I get HINSTANCE from a DLL?
body: <p>I have created a DLL in VC++ as Win32 project </p>
  
  <p>DLLMAIN function is </p>
  
  <pre><code>BOOL APIENTRY DllMain( HMODULE hModule,
                         DWORD  ul_reason_for_call,
                         LPVOID lpReserved
                       )
  {
      return TRUE;
  }
  </code></pre>
  
  <p>Now I need HINSTANCE of the DLL , that need to be passed to Win32 functions.</p>
  
  <p>Are HMODULE and HINSTANCE same?</p>
  
  <p>How can I get HINSTANCE?</p>