cURL / Mailing Lists / curl-library / Single Mail


Re: [Bulk] RE: [Bulk] RE: Win32 use of GetVersionEx()

From: Gisle Vanem <>
Date: Sat, 18 Jan 2014 00:30:55 +0100

"Steve Holme" <> wrote:

> Cheers Gisle... Can I simply change my current pre-processor check from:
> #if !defined(VerifyVersionInfo)
> To:
> #if (_WIN32_WINNT < _WIN32_WINNT_WIN2K)
> Or do I need something a little more complicated where I check that
> _WIN32_WINNT and _WIN32_WINNT_WIN2K are defined as well?

I think you could do:
  #if !defined(_WIN32_WINNT) || (_WIN32_WINNT < _WIN32_WINNT_WIN2K)

Since _WIN32_WINNT is always (?) set to a minimum supported OS.
But the best would to use LoadLibrary(). Then you'd be sure and a liburl.dll
compiled on e.g. Win-Vista would still work on Win-NT 4.


List admin:
Received on 2014-01-18