cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

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

"Steve Holme" <steve_holme_at_hotmail.com> 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.

--gv

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-01-18