Mail Archives: cygwin/1999/05/01/21:57:06
------=_NextPart_000_0010_01BE941D.9AE0F8B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
hi,
I have added some functions that were missing in the wininet.h .
Regards
Nirmal Prasad R.
------=_NextPart_000_0010_01BE941D.9AE0F8B0
Content-Type: application/octet-stream;
name="wininet.def.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="wininet.def.diff"
*** ../wininet.def Mon Mar 08 10:44:34 1999
--- wininet.def Sun Apr 25 20:17:38 1999
***************
*** 1,5 ****
; Which header declares the functions not in wininet?
! LIBRARY WININET
EXPORTS
CommitUrlCacheEntryA AT 36
CommitUrlCacheEntryW AT 36
--- 1,5 ----
; Which header declares the functions not in wininet?
! LIBRARY "WININET.DLL"
EXPORTS
CommitUrlCacheEntryA AT 36
CommitUrlCacheEntryW AT 36
***************
*** 67,82 ****
GopherOpenFileW AT 20
HttpAddRequestHeadersA AT 16
HttpAddRequestHeadersW AT 16
! HttpEndRequestA
! HttpEndRequestW
HttpOpenRequestA AT 32
HttpOpenRequestW AT 32
HttpQueryInfoA AT 20
HttpQueryInfoW AT 20
HttpSendRequestA AT 20
- HttpSendRequestExA
- HttpSendRequestExW
HttpSendRequestW AT 20
IncrementUrlCacheHeaderData
InternetAttemptConnect AT 4
InternetAutodial
--- 67,82 ----
GopherOpenFileW AT 20
HttpAddRequestHeadersA AT 16
HttpAddRequestHeadersW AT 16
! HttpEndRequestA AT 16
! HttpEndRequestW AT 16
HttpOpenRequestA AT 32
HttpOpenRequestW AT 32
HttpQueryInfoA AT 20
HttpQueryInfoW AT 20
HttpSendRequestA AT 20
HttpSendRequestW AT 20
+ HttpSendRequestExA AT 20
+ HttpSendRequestExW AT 20
IncrementUrlCacheHeaderData
InternetAttemptConnect AT 4
InternetAutodial
------=_NextPart_000_0010_01BE941D.9AE0F8B0
Content-Type: application/octet-stream;
name="wininet.h.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="wininet.h.diff"
*** old/wininet.h Sun Apr 25 18:03:50 1999
--- wininet.h Sun Apr 25 20:25:24 1999
***************
*** 1,5 ****
--- 1,8 ----
#ifndef _WININET_H
#define _WININET_H
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
#include <windows.h>
#define INTERNET_INVALID_PORT_NUMBER 0
#define INTERNET_DEFAULT_FTP_PORT 21
***************
*** 442,447 ****
--- 445,457 ----
#define CACHE_ENTRY_ACCTIME_FC 0x100
#define CACHE_ENTRY_SYNCTIME_FC 0x200
#define CACHE_ENTRY_HEADERINFO_FC 0x400
+ #define HSR_ASYNC WININET_API_FLAG_ASYNC // force async
+ #define HSR_SYNC WININET_API_FLAG_SYNC // force sync
+ #define HSR_USE_CONTEXT WININET_API_FLAG_USE_CONTEXT // use =
dwContext value
+ #define HSR_INITIATE 0x00000008 // iterative =
operation (completed by HttpEndRequest)
+ #define HSR_DOWNLOAD 0x00000010 // download to =
file
+ #define HSR_CHUNKED 0x00000020 // operation =
is send of chunked data
+=20
typedef PVOID HINTERNET;
typedef HINTERNET *LPHINTERNET;
typedef WORD INTERNET_PORT,*LPINTERNET_PORT;
***************
*** 626,631 ****
--- 636,670 ----
DWORD dwReserved;
} INTERNET_CACHE_ENTRY_INFOW,*LPINTERNET_CACHE_ENTRY_INFOW;
=20
+ typedef struct _INTERNET_BUFFERSA
+ {
+ DWORD dwStructSize; // used for API versioning. =
Set to sizeof(INTERNET_BUFFERS)
+ struct _INTERNET_BUFFERS * Next; // chain of buffers
+ LPCSTR lpcszHeader; // pointer to headers (may be =
NULL)
+ DWORD dwHeadersLength; // length of headers if not =
NULL
+ DWORD dwHeadersTotal; // size of headers if not =
enough buffer
+ LPVOID lpvBuffer; // pointer to data buffer (may =
be NULL)
+ DWORD dwBufferLength; // length of data buffer if =
not NULL
+ DWORD dwBufferTotal; // total size of chunk, or =
content-length if not chunked
+ DWORD dwOffsetLow; // used for read-ranges (only =
used in HttpSendRequest2)
+ DWORD dwOffsetHigh;
+ } INTERNET_BUFFERSA, * LPINTERNET_BUFFERSA;
+=20
+=20
+ typedef struct _INTERNET_BUFFERSW
+ {
+ DWORD dwStructSize; // used for API versioning. =
Set to sizeof(INTERNET_BUFFERS)
+ struct _INTERNET_BUFFERS * Next; // chain of buffers
+ LPCWSTR lpcszHeader; // pointer to headers (may be =
NULL)
+ DWORD dwHeadersLength; // length of headers if not =
NULL
+ DWORD dwHeadersTotal; // size of headers if not =
enough buffer
+ LPVOID lpvBuffer; // pointer to data buffer (may =
be NULL)
+ DWORD dwBufferLength; // length of data buffer if =
not NULL
+ DWORD dwBufferTotal; // total size of chunk, or =
content-length if not chunked
+ DWORD dwOffsetLow; // used for read-ranges (only =
used in HttpSendRequest2)
+ DWORD dwOffsetHigh;
+ } INTERNET_BUFFERSW, * LPINTERNET_BUFFERSW;
+=20
#ifdef UNICODE
typedef URL_COMPONENTSW URL_COMPONENTS;
typedef LPURL_COMPONENTSW LPURL_COMPONENTS;
***************
*** 633,638 ****
--- 672,679 ----
typedef LPGOPHER_FIND_DATAW LPGOPHER_FIND_DATA;
typedef INTERNET_CACHE_ENTRY_INFOW INTERNET_CACHE_ENTRY_INFO;
typedef LPINTERNET_CACHE_ENTRY_INFOW LPINTERNET_CACHE_ENTRY_INFO;
+ typedef INTERNET_BUFFERSW INTERNET_BUFFERS;
+ typedef INTERNET_BUFFERSW* LPINTERNET_BUFFERS;
#else
typedef URL_COMPONENTSA URL_COMPONENTS;
typedef LPURL_COMPONENTSA LPURL_COMPONENTS;
***************
*** 640,645 ****
--- 681,688 ----
typedef LPGOPHER_FIND_DATAA LPGOPHER_FIND_DATA;
typedef INTERNET_CACHE_ENTRY_INFOA INTERNET_CACHE_ENTRY_INFO;
typedef LPINTERNET_CACHE_ENTRY_INFOA LPINTERNET_CACHE_ENTRY_INFO;
+ typedef INTERNET_BUFFERSA INTERNET_BUFFERS;
+ typedef INTERNET_BUFFERSA* LPINTERNET_BUFFERS;
#endif
BOOL WINAPI InternetTimeFromSystemTime(SYSTEMTIME*,DWORD,LPSTR,DWORD);
BOOL WINAPI InternetTimeToSystemTime(LPCSTR,SYSTEMTIME*,DWORD);
***************
*** 744,749 ****
--- 787,796 ----
BOOL WINAPI FindCloseUrlCache(HANDLE);
BOOL WINAPI DeleteUrlCacheEntry(LPCSTR);
DWORD =
AuthenticateUser(PVOID*,LPSTR,LPSTR,DWORD,LPSTR,DWORD,LPSTR,LPSTR);
+ BOOL WINAPI =
HttpSendRequestExA(HINTERNET,LPINTERNET_BUFFERSA,LPINTERNET_BUFFERSA,DWOR=
D,DWORD);
+ BOOL WINAPI =
HttpSendRequestExW(HINTERNET,LPINTERNET_BUFFERSW,LPINTERNET_BUFFERSW,DWOR=
D,DWORD);
+ BOOL WINAPI =
HttpEndRequestA(HINTERNET,LPINTERNET_BUFFERSA,DWORD,DWORD);
+ BOOL WINAPI =
HttpEndRequestW(HINTERNET,LPINTERNET_BUFFERSW,DWORD,DWORD);
#ifdef UNICODE
#define InternetCrackUrl InternetCrackUrlW
#define InternetCreateUrl InternetCreateUrlW
***************
*** 787,792 ****
--- 834,841 ----
#define SetUrlCacheEntryInfo SetUrlCacheEntryInfoW
#define FindFirstUrlCacheEntry FindFirstUrlCacheEntryW
#define RetrieveUrlCacheEntryFile RetrieveUrlCacheEntryFileW
+ #define HttpSendRequestEx HttpSendRequestExW
+ #define HttpEndRequest HttpEndRequestW
#else
#define GopherGetAttribute GopherGetAttributeA
#define InternetCrackUrl InternetCrackUrlA
***************
*** 830,834 ****
--- 879,888 ----
#define SetUrlCacheEntryInfo SetUrlCacheEntryInfoA
#define FindFirstUrlCacheEntry FindFirstUrlCacheEntryA
#define RetrieveUrlCacheEntryFile RetrieveUrlCacheEntryFileA
+ #define HttpSendRequestEx HttpSendRequestExA
+ #define HttpEndRequest HttpEndRequestA
+ #endif
+ #ifdef __cplusplus
+ }
#endif
#endif
------=_NextPart_000_0010_01BE941D.9AE0F8B0
Content-Type: text/plain; charset=us-ascii
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
------=_NextPart_000_0010_01BE941D.9AE0F8B0--
- Raw text -