hostname: Add an implementation of the hostname display utility.

Juan Lang juan.lang at gmail.com
Tue May 17 11:07:18 CDT 2011


Hi Andrew,

+    GetComputerNameW(name, &size);
+    hostname_printfW(fmtW, name);

I'm pretty sure that's not what you want.  GetComputerName returns the
"NetBIOS name" of the computer, which is set in the registry.
hostname prints the IP hostname of the computer.  At least, my look at
a Windows version's imports showed no import of GetComputerName, while
there is an import of ws2_32.dll's gethostname (by ordinal).
--Juan



More information about the wine-devel mailing list