On Wed, Mar 01, 2000 at 05:20:53PM -0800, Alexandre Julliard wrote:
> Andreas Mohr <[EMAIL PROTECTED]> writes:
>
> > Well, just what I said:
> > E.g. query the host name.
> > I just saw before that the registry automatically queries the host name
> > and saves it (upon every startup !).
>
> Well, yes, that's exactly the right thing to do. Were you suggesting
> to get the host name once and save it in the registry forever? That
> would be pretty broken IMO.
Exactly.
Just as on Windows.
You know that little part where Windows setup asks for the computer name ?
That's where it gets stored *once*.
And as we have SetComputerNameA, we should store it once, too, I think.
Or maybe not ?
What do you think ?
Well, at least SetComputerNameA has to store it in the registry, too
(it doesn't).
And GetComputerNameA has to retrieve the registry value, not call
gethostname().
Andreas Mohr