Re: hostname: Add an implementation of the hostname display utility. (try 2)

2011-05-19 Thread Alexandre Julliard
Andrew Nguyen writes: > diff --git a/programs/hostname/Makefile.in b/programs/hostname/Makefile.in > new file mode 100644 > index 000..300d727 > --- /dev/null > +++ b/programs/hostname/Makefile.in > @@ -0,0 +1,12 @@ > +EXTRADEFS = -DWINE_NO_UNICODE_MACROS > +MODULE= hostname.exe > +APPMOD

Re: hostname: Add an implementation of the hostname display utility.

2011-05-17 Thread Andrew Nguyen
On 05/17/2011 11:07 AM, Juan Lang wrote: > 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 ho

Re: hostname: Add an implementation of the hostname display utility.

2011-05-17 Thread Juan Lang
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 v