To get memory from another process.

Quantium qchessv2 at
Wed Apr 8 20:16:27 UTC 2020

On Wednesday, 8 April 2020 at 16:25:01 UTC, Net wrote:
> On Tuesday, 7 April 2020 at 21:20:28 UTC, Quantium wrote:
>> Could you advise me how to do these steps on D? Which libs 
>> should I import?
>> 1. My programm gets a path to exe file
>> 2. My programm starts that exe file and writes into it 2 
>> commands
>> 3. Programm gets access to exe file memory
>> 4. Programm gets data from process memory and writes it into 
>> data.bin file which is in the same directory.
>> As I said, which libs do I need and how to get access to other 
>> process memory.
>> Also, can I make this as a driver, but if yes, how to code 
>> driver on D?
> As far I know, you can't access other's program memory in any 
> modern operating system.  That's managed and protected by the 
> OS through virtual addressing.
> What are you trying to do?

Now I know that programm even at Administrator mode cannot do 
this. Only system permission can do that. Or a driver on a 
kernel-level (zero level). So now the question is how to code 
driver, which gets other process' memory on D.
Also, I know antiviruses will try to block this driver so I'll 
test it with no antiviruses and Microsoft Defender off. Or if I'm 
mistaking anywhere and this is impossible on Windows, is it 
possible on Linux?

More information about the Digitalmars-d-learn mailing list