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

Reply via email to