Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WinHTTP 5.1 SDK

313 views
Skip to first unread message

Steve Binney

unread,
Feb 19, 2003, 1:01:42 PM2/19/03
to
Where can I find the SDK for WinHTTP 5.1. The latest Platform SDK I have
from MSDN is November 2002. The MSDN download area also has the November
release. Is the WinHTTP 5.1 SDK on the November 2002 release? The
WinHTTP5.1 web site refers to a Feb 2003 Paltform SDK release.

Steve Binney


Stephen Sulzer [MSFT]

unread,
Feb 19, 2003, 3:55:43 PM2/19/03
to
Hello,

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...

Steve Binney

unread,
Feb 19, 2003, 4:55:13 PM2/19/03
to
Stephen,

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...

Stephen Sulzer [MSFT]

unread,
Feb 19, 2003, 9:35:17 PM2/19/03
to
Copying the WinHTTP 5.1 DLL from an Windows 2000 SP3 to a SP2 or Windows
NT6a installation is not supported.

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...

Steve Binney

unread,
Feb 20, 2003, 7:41:36 AM2/20/03
to
Stephen

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...

0 new messages