title: Process address is different in .NET Framework and .NET core
body: <p>I have an application developed in the .NET Framework and now I am updating it to .NET CORE, and in .NET CORE the GetProcAddress method of kernel32.dll (DllImportAttribute) gets a different process address than the same application in the .NET Framework, because it happens this if it is exactly the same code? How can I get .NET CORE to return the same address for that process as .NET Framework?</p>
  
  <pre><code>[DllImport("kernel32.dll", CharSet = CharSet.Ansi, SetLastError = true)]
  internal static extern IntPtr GetProcAddress(IntPtr hModule, string procName);
  
  private static void GetProcess()
  {
     IntPtr mh = Kernel32.GetModuleHandle("kernel32.dll");
     if (mh != IntPtr.Zero)
     {
        IntPtr load_library_w = Kernel32.GetProcAddress(mh, "LoadLibraryW");               
     }
  }
  </code></pre>
  
  <ul>
  <li><strong>NET Framework process adress (load_library_w):</strong> 0x777c1620</li>
  <li><strong>NET CORE process adress (load_library_w):</strong> 0x00007ff887a5fe80</li>
  </ul>
  
  <p><strong>I would like to know how I can get the same memory address as in the .NET Framework.</strong></p>