Re: To get memory from another process.

2020-04-10 Thread Quantium via Digitalmars-d-learn
I've tried this on 64 bit, it works. But when I start VirtualBox with Windows 10 32-bit on it, it doesnt works.

Re: To get memory from another process.

2020-04-09 Thread rikki cattermole via Digitalmars-d-learn
On 10/04/2020 7:42 AM, Dennis wrote: On Thursday, 9 April 2020 at 19:27:16 UTC, Quantium wrote: I see this code imports drivers and does it depend on processor architecture? Would it work only on 64-bit or 32-bit or some special architechtures? kernel32.dll and psapi.dll should be present on

Re: To get memory from another process.

2020-04-09 Thread Dennis via Digitalmars-d-learn
On Thursday, 9 April 2020 at 19:27:16 UTC, Quantium wrote: I see this code imports drivers and does it depend on processor architecture? Would it work only on 64-bit or 32-bit or some special architechtures? kernel32.dll and psapi.dll should be present on any normal Windows 10 installation.

Re: To get memory from another process.

2020-04-09 Thread Quantium via Digitalmars-d-learn
I see this code imports drivers and does it depend on processor architecture? Would it work only on 64-bit or 32-bit or some special architechtures?

Re: To get memory from another process.

2020-04-09 Thread Dennis via Digitalmars-d-learn
On Thursday, 9 April 2020 at 17:23:19 UTC, Quantium wrote: Ok. For training example, we're using Windows 10 Por. We can use WinAPI. Are there any D libs to use WinAPI? I have used the Windows API to read/write into a different process before. Here is some example code in case it's useful: (I

Re: To get memory from another process.

2020-04-09 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 9 April 2020 at 17:23:19 UTC, Quantium wrote: We can use WinAPI. Are there any D libs to use WinAPI? import core.sys.windows.windows; it is all built in.

Re: To get memory from another process.

2020-04-09 Thread Quantium via Digitalmars-d-learn
On Thursday, 9 April 2020 at 17:23:19 UTC, Quantium wrote: Anyway, messing with another, isolated processes is stuff that is highly specific to each operating system. Anyway, there are no generic answers to your question. This is hardcore systems programming. You should rather look at your OS d

Re: To get memory from another process.

2020-04-09 Thread Quantium via Digitalmars-d-learn
Anyway, messing with another, isolated processes is stuff that is highly specific to each operating system. Anyway, there are no generic answers to your question. This is hardcore systems programming. You should rather look at your OS documentation to see what is provided there. Ok. For train

Re: To get memory from another process.

2020-04-09 Thread Gregor Mückl via Digitalmars-d-learn
On Wednesday, 8 April 2020 at 21:04:42 UTC, Quantium wrote: I'm trying to do this because I have very special programm that makes some calculations and on every calculation there is a hash in RAM. I need to get a one of hash values from a .bin file, and replace them. I mean hash in RAM of the p

Re: To get memory from another process.

2020-04-08 Thread Quantium via Digitalmars-d-learn
On Wednesday, 8 April 2020 at 20:46:48 UTC, H. S. Teoh wrote: On Wed, Apr 08, 2020 at 08:16:27PM +, Quantium via Digitalmars-d-learn wrote: On Wednesday, 8 April 2020 at 16:25:01 UTC, Net wrote: [...] > As far I know, you can't access other's program memory in > any modern operating system

Re: To get memory from another process.

2020-04-08 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Apr 08, 2020 at 08:16:27PM +, Quantium via Digitalmars-d-learn wrote: > On Wednesday, 8 April 2020 at 16:25:01 UTC, Net wrote: [...] > > 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 > > virtua

Re: To get memory from another process.

2020-04-08 Thread Quantium via Digitalmars-d-learn
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

Re: To get memory from another process.

2020-04-08 Thread rikki cattermole via Digitalmars-d-learn
On 09/04/2020 4:25 AM, 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 acces

Re: To get memory from another process.

2020-04-08 Thread Net via Digitalmars-d-learn
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

To get memory from another process.

2020-04-07 Thread Quantium via Digitalmars-d-learn
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 fi