Steve Binney
The November 2002 Platform SDK contains the necessary WinHTTP 5.1 SDK files.
There is no separate SDK for WinHTTP 5.1, it is integrated into the Platform
SDK. The WinHTTP 5.1 samples are located in the "Microsoft
SDK\samples\web\winhttp" sub-folder. If you are not installing the entire
Platform SDK, you'll need to install at least the "Core" and "Internet
Client" SDKs.
Regards,
Stephen Sulzer
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
"Steve Binney" <steve....@waters.com> wrote in message
news:uCLN3DE2...@TK2MSFTNGP11.phx.gbl...
Thanks for your response.
The documentation indicates that WinHTTP 5.1 is only supported on Win 2000
SP3 and Win XP.
My software may encounter a system running Win 2000 SP2 or NT SP6a. Can I
copy the WinHTTP 5.1 dll (winhttp.dll) on these platforms or, do I need
SP3 for Win 2k and have no way to use NT?
Steve
"Stephen Sulzer [MSFT]" <ssu...@online.microsoft.com> wrote in message
news:uhtn8kF...@TK2MSFTNGP11.phx.gbl...
WinHTTP 5.1 is a new operating system component introduced with Windows 2000
SP3, Windows XP SP1 and Windows Server 2003. It is not a redistributable
component.
If your application needs to support earlier OS releases, then the situation
becomes difficult. One solution is to "fall back" to the previous version,
WinHTTP 5.0, which is redistributable (including Windows NT). This requires
your application to dynamically load the appropriate DLL at runtime (based
on OS version info) and GetProcAddress the WinHTTP API function pointers.
Regards,
Stephen Sulzer
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
"Steve Binney" <steve....@waters.com> wrote in message
news:OWBHHGG2CHA.2204@TK2MSFTNGP09...
Thanks for the reply.
Can I have Wininet and WinHTTP in the same app?
I plan on detecting the OS at runtime and using either Wininet(NT and Win2k
pre sp3) or WinHTTP. I need to do this because the when my app runs on NT
it is never a service and if it runs on Win2k(sp3) and XP it is either a
service or an plain exe.
I also need the WinInet functionality of setting the IE 6 mode to offline or
online.
When I include both headers, I get several macr refinition errors:
c:\Program Files\Microsoft SDK\include\winhttp.h(45) : warning C4005:
'BOOLAPI' : macro redefinition
c:\Program Files\Microsoft SDK\include\WinInet.h(50) : see previous
definition of 'BOOLAPI'
c:\Program Files\Microsoft SDK\include\winhttp.h(78) : warning C4005:
'SECURITY_FLAG_IGNORE_CERT_DATE_INVALID' : macro redefinition
c:\Program Files\Microsoft SDK\include\WinInet.h(1225) : see previous
definition of 'SECURITY_FLAG_IGNORE_CERT_DATE_INVALID'
c:\Program Files\Microsoft SDK\include\winhttp.h(79) : warning C4005:
'SECURITY_FLAG_IGNORE_CERT_CN_INVALID' : macro redefinition
c:\Program Files\Microsoft SDK\include\WinInet.h(1224) : see previous
definition of 'SECURITY_FLAG_IGNORE_CERT_CN_INVALID'
c:\Program Files\Microsoft SDK\include\winhttp.h(110) : error C2371:
'HTTP_VERSION_INFO' : redefinition; different basic types
c:\Program Files\Microsoft SDK\include\WinInet.h(459) : see declaration of
'HTTP_VERSION_INFO'
c:\Program Files\Microsoft SDK\include\winhttp.h(110) : error C2371:
'LPHTTP_VERSION_INFO' : redefinition; different basic types
c:\Program Files\Microsoft SDK\include\WinInet.h(459) : see declaration of
'LPHTTP_VERSION_INFO'
c:\Program Files\Microsoft SDK\include\winhttp.h(117) : error C2371:
'INTERNET_SCHEME' : redefinition; different basic types
c:\Program Files\Microsoft SDK\include\WinInet.h(279) : see declaration of
'INTERNET_SCHEME'
c:\Program Files\Microsoft SDK\include\winhttp.h(117) : error C2371:
'LPINTERNET_SCHEME' : redefinition; different basic types
c:\Program Files\Microsoft SDK\include\WinInet.h(279) : see declaration of
'LPINTERNET_SCHEME'
etc.
Thanks
Steve
"Stephen Sulzer [MSFT]" <ssu...@online.microsoft.com> wrote in message
news:OPogqiI2...@TK2MSFTNGP09.phx.gbl...