[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Max env-var size on Win-XP
From: |
Eli Zaretskii |
Subject: |
Re: Max env-var size on Win-XP |
Date: |
Sun, 02 Feb 2014 20:10:38 +0200 |
> From: "Gisle Vanem" <address@hidden>
> Date: Sun, 2 Feb 2014 18:34:49 +0100
>
> "Eli Zaretskii" <address@hidden> wrote:
>
> > Wouldn't it be better to display the error only if CreateProcess fails
> > with e=87 _and_ the environment is larger than 32KB? That would allow
> > us to avoid calling GetVersionEx, which MS wants to deprecate (see
> > http://msdn.microsoft.com/en-us/library/windows/desktop/ms724451%28v=vs.85%29.aspx).
>
> To use this new Version Helper API, much more rewrite is needed.
> Allthough GetVersionEx() is deprecated, it will still work for the foreseable
> future.
No, I meant avoid this versionitis altogether. IOW, if CreateProcess
failed with error code 87 and the environment is larger than 32KB,
display the hint, regardless of the Windows version.
> > Would you like to write a modified patch along these lines?
>
> Okay, will do.
Thanks.
> BTW. Do we support Win-9x/ME?
Yes.
> If so, maybe we need to use GetVersionEx() more
> carefully. I.e. loaded dynamically?
According to my references, GetVersionEx is supported on Windows 9X,
so there should be no problem using it. However, I'd like to avoid
looking at the version.