Search code examples
c#processbase-address

Get own base address - multiple processes with the same name


In my DLL attached to an application I would like to find its (the application's) base address, but I don't think I can use FindProcessByName as I will have multiple instances of this application running. How can I accomplish this?


Solution

  • You can use Process.GetCurrentProcess().