JamesMenetrey / MemorySharp

A C# based memory editing library targeting Windows applications, offering various functions to extract and inject data and codes into remote processes to allow interoperability.
Other
634 stars 135 forks source link

Execute? #22

Closed Ninisi closed 2 years ago

Ninisi commented 2 years ago

hi . I've using your lib to do something fun. thanks a lot! but I have a question. Is AssemblyFactory.Execute() can call a injected funtion too? when I injected my test dll to another game process and get successful. I dont know how to call my funtions. please answer me. thank you!

@JamesMenetrey

JamesMenetrey commented 2 years ago

Hello!

Happy to see you have some fun with memory editing!

You can indeed call your own injected functions with an instance ofAssemblyFactory. Otherwise, you can also use the Execute method of an instance of RemotePointer. Do not forget to specify the calling convention if needed.

Cheers! Jämes