Calling Kernel32 functions from D

torhu no at spam.invalid
Sat Feb 25 14:04:10 PST 2012

On 25.02.2012 22:50, Gyron wrote:
> Hey Guys, i'm thinking about moving from c++ to D, but I cant
> live without the Kernel32 Functions, so whats the easiest way to
> use them in D?
> I mean for example ReadProcessMemory etc.

Look at the src\druntime\src\core\sys\windows folder in your DMD 
installation.  The Windows API declarations are there.  Some things are 
missing, but you can just declare that yourself as needed.

Most of it is in, but ReadProcessMemory is 
declared in

kernel32.lib is linked by default, so you don't need to do anything else 
to get it working.

More information about the Digitalmars-d mailing list