Looking for a little help with the win32 headers

Belly via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 25 21:52:22 PDT 2015


Hello, just installed D today. I have this code:

import std.stdio;
import win32.windef;
import win32.winbase;

void main()
{
     LPSTR lpBuffer;
     PDWORD lpnSize;
     int result = GetComputerNameA(lpBuffer, lpnSize);

     writeln(result);
}

It passes zeroes to the API, I'm stuck and can't find a suitable 
sample in the win32 repository here:
https://github.com/AndrejMitrovic/DWinProgramming


More information about the Digitalmars-d-learn mailing list