You can use Process.GetCurrentProcess()
.
Get own base address - multiple processes with the same name
-
06-07-2023 - |
Frage
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?
Lösung
Andere Tipps
Process.ProcessName property holds an executable file name, such as Outlook, that does not include the .exe extension or the path. It is helpful for getting and manipulating all the processes that are associated with the same executable file.
Here is the reference link.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow