WCHAR wchCompName[256]; DWORD dwSize = 255; if (GetComputerNameW(wchCompName, &dwSize)) printf("%ws\n", wchCompName);
use %ls and read help file