开发者

Can PHP attach to a running Windows process?

开发者 https://www.devze.com 2023-02-21 12:22 出处:网络
Are there any PHP functions/libraries that I can use to attach to a running process under the Windows OS ?

Are there any PHP functions/libraries that I can use to attach to a running process under the Windows OS ?

I'm playing an abandonware game and I would like to make changes to data in various memory locations whilst the game is running.

The game doesn't use Shared Memory, IPC's. I'm hoping PHP allows me to give the Process ID of the game, and then it can attach using some functions/library that I've not come across.

The GDB debgugger is one potential way for开发者_运维知识库ward, but I'd like to do everything in PHP if possible.

Any thoughts or ideas will be appreciated.


With PHP running on Windows you are able to create instances of ActiveX objects. But this will lead you to write an ActiveX class which gets all the information and does all the work. PHP would end for display only purposes and so you could create your html output directly with your ActiveX class / C++ / C# / whatever app.

Summary: For such a task PHP is not the best choice.

0

精彩评论

暂无评论...
验证码 换一张
取 消