Re: Is there a way to work with processes in Windows without extern(c)?

2021-01-13 Thread dog2002 via Digitalmars-d-learn
On Wednesday, 13 January 2021 at 15:11:40 UTC, Dennis wrote: On Wednesday, 13 January 2021 at 14:04:52 UTC, dog2002 wrote: [...] I don't think this is part of the standard library. Here's a piece of code I wrote a while ago if that's useful: [...] Thank you so much!

Re: Is there a way to work with processes in Windows without extern(c)?

2021-01-13 Thread Dennis via Digitalmars-d-learn
On Wednesday, 13 January 2021 at 14:04:52 UTC, dog2002 wrote: I could use extern(c) and Process Walking (Process32First, Process32Next), but maybe there is a way to get the list by means of D? I don't think this is part of the standard library. Here's a piece of code I wrote a while ago if tha

Is there a way to work with processes in Windows without extern(c)?

2021-01-13 Thread dog2002 via Digitalmars-d-learn
I need to get a list of processes in Windows (and their pid). I could use extern(c) and Process Walking (Process32First, Process32Next), but maybe there is a way to get the list by means of D?