![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

Dear People,
I am having a heck of a time trying to figure out
WinHttp.dll.It is apperently *MUCH* harder to use than
sockettools from catalyst. I can't afford socketools
though. I'm stuck at a very early stage of using
WinHttp.dll, the second call!
VARIABLE SESSION-HANDLE
VARIABLE CONNECTION-HANDLE
1 CONSTANT dwAccessType \
WINHTTP_ACCESS_TYPE_NO_PROXY = 1
0 CONSTANT pwszProxyName ( null )
0 CONSTANT pwszProxyBypass ( null )
0 CONSTANT dwFlags \ 0=synchronously
LIBRARY WinHTTP.dll
5 Import: WinHttpOpen ( pwszUserAgent
dwAccessType pwszProxyName pwszProxyBypass dwFlags
-- session-handle )
\ creates a session context
\ Z" Test Program" dwAccessType pwszProxyName
pwszProxyBypass dwFlags WinHttpOpen SESSION-HANDLE
!
4 Import: WinHttpConnect ( hSession
pswzServerName nServerPort dwReserved --
connection-handle )
\ creates a connection handle
\ SESSION-HANDLE @ Z" https://api.sandbox.ebay.com"
443 0 WinHttpConnect CONNECTION-HANDLE !
I can get a handle from WinHttpOpen, but I can't get
one from WinHttpConnect.It does not matter what I pass
to it, the result is always 0! Not only that, calling
GetLastError always returns a 0 as well.
Another question. Where do I get the .h file for this
dll? I found something on microsofts site that might
have it in there, but it's like a 3 hour download,
and takes up 1GB of HD space.
Windows® Server 2003 R2 Platform SDK
I found and downloaded WinHttp.dll from one of those
dll download sites.
Finally, perhaps you would recommend that I use
WinInet.dll, is it easier to use? I am totally stuck
and think that I'll try that route as well, and see
where I land.
Jason
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Thu Jun 01 2006 - 22:22:10 PDT
This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 03:04:16 PST