2002-03-10 00:29:33 +01:00
|
|
|
/*
|
|
|
|
* Wininet
|
|
|
|
*
|
|
|
|
* Copyright 1999 Corel Corporation
|
|
|
|
*
|
|
|
|
* Ulrich Czekalla
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
2000-04-11 22:07:00 +02:00
|
|
|
#ifndef _WINE_INTERNET_H_
|
|
|
|
#define _WINE_INTERNET_H_
|
|
|
|
|
2001-02-15 22:24:07 +01:00
|
|
|
#include <time.h>
|
2001-08-24 21:13:36 +02:00
|
|
|
#ifdef HAVE_NETDB_H
|
|
|
|
# include <netdb.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_NETINET_IN_H
|
2001-09-11 01:07:39 +02:00
|
|
|
# include <sys/types.h>
|
2001-08-24 21:13:36 +02:00
|
|
|
# include <netinet/in.h>
|
|
|
|
#endif
|
2003-06-21 01:26:56 +02:00
|
|
|
#ifdef HAVE_OPENSSL_SSL_H
|
2003-08-05 21:21:08 +02:00
|
|
|
#define DSA __ssl_DSA /* avoid conflict with commctrl.h */
|
2003-11-25 02:48:01 +01:00
|
|
|
#undef FAR
|
2003-06-21 01:26:56 +02:00
|
|
|
# include <openssl/ssl.h>
|
2003-11-25 02:48:01 +01:00
|
|
|
#undef FAR
|
|
|
|
#define FAR do_not_use_this_in_wine
|
2003-08-05 21:21:08 +02:00
|
|
|
#undef DSA
|
2003-06-21 01:26:56 +02:00
|
|
|
#endif
|
2003-10-14 07:27:43 +02:00
|
|
|
#ifdef HAVE_SYS_SOCKET_H
|
|
|
|
# include <sys/socket.h>
|
|
|
|
#endif
|
2003-06-21 01:26:56 +02:00
|
|
|
|
|
|
|
/* used for netconnection.c stuff */
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
BOOL useSSL;
|
|
|
|
int socketFD;
|
|
|
|
#ifdef HAVE_OPENSSL_SSL_H
|
|
|
|
SSL *ssl_s;
|
|
|
|
int ssl_sock;
|
|
|
|
#endif
|
|
|
|
} WININET_NETCONNECTION;
|
2001-02-15 22:24:07 +01:00
|
|
|
|
2004-02-09 22:45:38 +01:00
|
|
|
inline static LPSTR WININET_strdup( LPCSTR str )
|
|
|
|
{
|
|
|
|
LPSTR ret = HeapAlloc( GetProcessHeap(), 0, strlen(str) + 1 );
|
|
|
|
if (ret) strcpy( ret, str );
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2000-04-11 22:07:00 +02:00
|
|
|
typedef enum
|
|
|
|
{
|
2000-06-11 22:04:44 +02:00
|
|
|
WH_HINIT = INTERNET_HANDLE_TYPE_INTERNET,
|
|
|
|
WH_HFTPSESSION = INTERNET_HANDLE_TYPE_CONNECT_FTP,
|
|
|
|
WH_HGOPHERSESSION = INTERNET_HANDLE_TYPE_CONNECT_GOPHER,
|
|
|
|
WH_HHTTPSESSION = INTERNET_HANDLE_TYPE_CONNECT_HTTP,
|
|
|
|
WH_HFILE = INTERNET_HANDLE_TYPE_FTP_FILE,
|
|
|
|
WH_HFINDNEXT = INTERNET_HANDLE_TYPE_FTP_FIND,
|
|
|
|
WH_HHTTPREQ = INTERNET_HANDLE_TYPE_HTTP_REQUEST,
|
2000-04-11 22:07:00 +02:00
|
|
|
} WH_TYPE;
|
|
|
|
|
|
|
|
typedef struct _WININETHANDLEHEADER
|
|
|
|
{
|
|
|
|
WH_TYPE htype;
|
|
|
|
DWORD dwFlags;
|
|
|
|
DWORD dwContext;
|
|
|
|
DWORD dwError;
|
|
|
|
struct _WININETHANDLEHEADER *lpwhparent;
|
|
|
|
} WININETHANDLEHEADER, *LPWININETHANDLEHEADER;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
WININETHANDLEHEADER hdr;
|
|
|
|
LPSTR lpszAgent;
|
|
|
|
LPSTR lpszProxy;
|
|
|
|
LPSTR lpszProxyBypass;
|
2003-07-22 05:17:52 +02:00
|
|
|
LPSTR lpszProxyUsername;
|
|
|
|
LPSTR lpszProxyPassword;
|
2000-04-11 22:07:00 +02:00
|
|
|
DWORD dwAccessType;
|
|
|
|
INTERNET_STATUS_CALLBACK lpfnStatusCB;
|
|
|
|
} WININETAPPINFOA, *LPWININETAPPINFOA;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
WININETHANDLEHEADER hdr;
|
|
|
|
LPSTR lpszServerName;
|
|
|
|
LPSTR lpszUserName;
|
|
|
|
INTERNET_PORT nServerPort;
|
|
|
|
struct sockaddr_in socketAddress;
|
|
|
|
struct hostent *phostent;
|
|
|
|
} WININETHTTPSESSIONA, *LPWININETHTTPSESSIONA;
|
|
|
|
|
2000-06-11 22:04:44 +02:00
|
|
|
#define HDR_ISREQUEST 0x0001
|
|
|
|
#define HDR_COMMADELIMITED 0x0002
|
|
|
|
#define HDR_SEMIDELIMITED 0x0004
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
LPSTR lpszField;
|
|
|
|
LPSTR lpszValue;
|
|
|
|
WORD wFlags;
|
|
|
|
WORD wCount;
|
|
|
|
} HTTPHEADERA, *LPHTTPHEADERA;
|
|
|
|
|
2000-04-11 22:07:00 +02:00
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
WININETHANDLEHEADER hdr;
|
|
|
|
LPSTR lpszPath;
|
|
|
|
LPSTR lpszVerb;
|
|
|
|
LPSTR lpszHostName;
|
2003-06-21 01:26:56 +02:00
|
|
|
WININET_NETCONNECTION netConnection;
|
2000-06-11 22:04:44 +02:00
|
|
|
HTTPHEADERA StdHeaders[HTTP_QUERY_MAX+1];
|
|
|
|
HTTPHEADERA *pCustHeaders;
|
|
|
|
INT nCustHeaders;
|
2000-04-11 22:07:00 +02:00
|
|
|
} WININETHTTPREQA, *LPWININETHTTPREQA;
|
|
|
|
|
|
|
|
|
2003-07-22 00:04:14 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
WININETHANDLEHEADER hdr;
|
|
|
|
BOOL session_deleted;
|
|
|
|
int nDataSocket;
|
|
|
|
} WININETFILE, *LPWININETFILE;
|
|
|
|
|
|
|
|
|
2000-04-11 22:07:00 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
WININETHANDLEHEADER hdr;
|
|
|
|
int sndSocket;
|
|
|
|
int lstnSocket;
|
2000-12-29 06:19:57 +01:00
|
|
|
int pasvSocket; /* data socket connected by us in case of passive FTP */
|
2003-07-22 00:04:14 +02:00
|
|
|
LPWININETFILE download_in_progress;
|
2000-04-11 22:07:00 +02:00
|
|
|
struct sockaddr_in socketAddress;
|
|
|
|
struct sockaddr_in lstnSocketAddress;
|
|
|
|
struct hostent *phostent;
|
|
|
|
LPSTR lpszPassword;
|
|
|
|
LPSTR lpszUserName;
|
|
|
|
} WININETFTPSESSIONA, *LPWININETFTPSESSIONA;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
BOOL bIsDirectory;
|
|
|
|
LPSTR lpszName;
|
|
|
|
DWORD nSize;
|
|
|
|
struct tm tmLastModified;
|
|
|
|
unsigned short permissions;
|
|
|
|
} FILEPROPERTIESA, *LPFILEPROPERTIESA;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
WININETHANDLEHEADER hdr;
|
|
|
|
int index;
|
|
|
|
DWORD size;
|
|
|
|
LPFILEPROPERTIESA lpafp;
|
|
|
|
} WININETFINDNEXTA, *LPWININETFINDNEXTA;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
FTPPUTFILEA,
|
|
|
|
FTPSETCURRENTDIRECTORYA,
|
|
|
|
FTPCREATEDIRECTORYA,
|
|
|
|
FTPFINDFIRSTFILEA,
|
|
|
|
FTPGETCURRENTDIRECTORYA,
|
|
|
|
FTPOPENFILEA,
|
|
|
|
FTPGETFILEA,
|
|
|
|
FTPDELETEFILEA,
|
|
|
|
FTPREMOVEDIRECTORYA,
|
|
|
|
FTPRENAMEFILEA,
|
|
|
|
INTERNETFINDNEXTA,
|
2000-06-11 22:04:44 +02:00
|
|
|
HTTPSENDREQUESTA,
|
|
|
|
HTTPOPENREQUESTA,
|
2002-06-22 01:59:49 +02:00
|
|
|
SENDCALLBACK,
|
2004-02-09 22:45:38 +01:00
|
|
|
INTERNETOPENURLA,
|
2000-04-11 22:07:00 +02:00
|
|
|
} ASYNC_FUNC;
|
|
|
|
|
2003-09-25 22:25:22 +02:00
|
|
|
struct WORKREQ_FTPPUTFILEA
|
|
|
|
{
|
|
|
|
LPSTR lpszLocalFile;
|
|
|
|
LPSTR lpszNewRemoteFile;
|
|
|
|
DWORD dwFlags;
|
|
|
|
DWORD dwContext;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WORKREQ_FTPSETCURRENTDIRECTORYA
|
|
|
|
{
|
|
|
|
LPSTR lpszDirectory;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WORKREQ_FTPCREATEDIRECTORYA
|
|
|
|
{
|
|
|
|
LPSTR lpszDirectory;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WORKREQ_FTPFINDFIRSTFILEA
|
|
|
|
{
|
|
|
|
LPSTR lpszSearchFile;
|
|
|
|
LPWIN32_FIND_DATAA lpFindFileData;
|
|
|
|
DWORD dwFlags;
|
|
|
|
DWORD dwContext;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WORKREQ_FTPGETCURRENTDIRECTORYA
|
|
|
|
{
|
|
|
|
LPSTR lpszDirectory;
|
|
|
|
DWORD *lpdwDirectory;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WORKREQ_FTPOPENFILEA
|
|
|
|
{
|
|
|
|
LPSTR lpszFilename;
|
|
|
|
DWORD dwAccess;
|
|
|
|
DWORD dwFlags;
|
|
|
|
DWORD dwContext;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WORKREQ_FTPGETFILEA
|
|
|
|
{
|
|
|
|
LPSTR lpszRemoteFile;
|
|
|
|
LPSTR lpszNewFile;
|
|
|
|
BOOL fFailIfExists;
|
|
|
|
DWORD dwLocalFlagsAttribute;
|
|
|
|
DWORD dwFlags;
|
|
|
|
DWORD dwContext;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WORKREQ_FTPDELETEFILEA
|
|
|
|
{
|
|
|
|
LPSTR lpszFilename;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WORKREQ_FTPREMOVEDIRECTORYA
|
|
|
|
{
|
|
|
|
LPSTR lpszDirectory;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WORKREQ_FTPRENAMEFILEA
|
|
|
|
{
|
|
|
|
LPSTR lpszSrcFile;
|
|
|
|
LPSTR lpszDestFile;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WORKREQ_INTERNETFINDNEXTA
|
|
|
|
{
|
|
|
|
LPWIN32_FIND_DATAA lpFindFileData;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WORKREQ_HTTPOPENREQUESTA
|
|
|
|
{
|
|
|
|
LPSTR lpszVerb;
|
|
|
|
LPSTR lpszObjectName;
|
|
|
|
LPSTR lpszVersion;
|
|
|
|
LPSTR lpszReferrer;
|
|
|
|
LPCSTR *lpszAcceptTypes;
|
|
|
|
DWORD dwFlags;
|
|
|
|
DWORD dwContext;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WORKREQ_HTTPSENDREQUESTA
|
|
|
|
{
|
|
|
|
LPSTR lpszHeader;
|
|
|
|
DWORD dwHeaderLength;
|
|
|
|
LPVOID lpOptional;
|
|
|
|
DWORD dwOptionalLength;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WORKREQ_SENDCALLBACK
|
|
|
|
{
|
|
|
|
HINTERNET hHttpSession;
|
|
|
|
DWORD dwContext;
|
|
|
|
DWORD dwInternetStatus;
|
|
|
|
LPVOID lpvStatusInfo;
|
|
|
|
DWORD dwStatusInfoLength;
|
|
|
|
};
|
|
|
|
|
2004-02-09 22:45:38 +01:00
|
|
|
struct WORKREQ_INTERNETOPENURLA
|
|
|
|
{
|
|
|
|
HINTERNET hInternet;
|
|
|
|
LPSTR lpszUrl;
|
|
|
|
LPSTR lpszHeaders;
|
|
|
|
DWORD dwHeadersLength;
|
|
|
|
DWORD dwFlags;
|
|
|
|
DWORD dwContext;
|
|
|
|
};
|
|
|
|
|
2000-04-11 22:07:00 +02:00
|
|
|
typedef struct WORKREQ
|
|
|
|
{
|
|
|
|
ASYNC_FUNC asyncall;
|
2003-09-25 22:25:22 +02:00
|
|
|
HINTERNET handle;
|
|
|
|
|
|
|
|
union {
|
|
|
|
struct WORKREQ_FTPPUTFILEA FtpPutFileA;
|
|
|
|
struct WORKREQ_FTPSETCURRENTDIRECTORYA FtpSetCurrentDirectoryA;
|
|
|
|
struct WORKREQ_FTPCREATEDIRECTORYA FtpCreateDirectoryA;
|
|
|
|
struct WORKREQ_FTPFINDFIRSTFILEA FtpFindFirstFileA;
|
|
|
|
struct WORKREQ_FTPGETCURRENTDIRECTORYA FtpGetCurrentDirectoryA;
|
|
|
|
struct WORKREQ_FTPOPENFILEA FtpOpenFileA;
|
|
|
|
struct WORKREQ_FTPGETFILEA FtpGetFileA;
|
|
|
|
struct WORKREQ_FTPDELETEFILEA FtpDeleteFileA;
|
|
|
|
struct WORKREQ_FTPREMOVEDIRECTORYA FtpRemoveDirectoryA;
|
|
|
|
struct WORKREQ_FTPRENAMEFILEA FtpRenameFileA;
|
|
|
|
struct WORKREQ_INTERNETFINDNEXTA InternetFindNextA;
|
|
|
|
struct WORKREQ_HTTPOPENREQUESTA HttpOpenRequestA;
|
|
|
|
struct WORKREQ_HTTPSENDREQUESTA HttpSendRequestA;
|
|
|
|
struct WORKREQ_SENDCALLBACK SendCallback;
|
2004-02-09 22:45:38 +01:00
|
|
|
struct WORKREQ_INTERNETOPENURLA InternetOpenUrlA;
|
2003-09-25 22:25:22 +02:00
|
|
|
} u;
|
2000-04-11 22:07:00 +02:00
|
|
|
|
|
|
|
struct WORKREQ *next;
|
|
|
|
struct WORKREQ *prev;
|
|
|
|
|
|
|
|
} WORKREQUEST, *LPWORKREQUEST;
|
|
|
|
|
2004-02-07 02:03:41 +01:00
|
|
|
HINTERNET WININET_AllocHandle( LPWININETHANDLEHEADER info );
|
|
|
|
LPWININETHANDLEHEADER WININET_GetObject( HINTERNET hinternet );
|
|
|
|
BOOL WININET_FreeHandle( HINTERNET hinternet );
|
|
|
|
HINTERNET WININET_FindHandle( LPWININETHANDLEHEADER info );
|
2000-04-11 22:07:00 +02:00
|
|
|
|
|
|
|
time_t ConvertTimeString(LPCSTR asctime);
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
HINTERNET FTP_Connect(HINTERNET hInterent, LPCSTR lpszServerName,
|
2000-04-11 22:07:00 +02:00
|
|
|
INTERNET_PORT nServerPort, LPCSTR lpszUserName,
|
|
|
|
LPCSTR lpszPassword, DWORD dwFlags, DWORD dwContext);
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
HINTERNET HTTP_Connect(HINTERNET hInterent, LPCSTR lpszServerName,
|
2000-06-11 22:04:44 +02:00
|
|
|
INTERNET_PORT nServerPort, LPCSTR lpszUserName,
|
|
|
|
LPCSTR lpszPassword, DWORD dwFlags, DWORD dwContext);
|
|
|
|
|
2000-04-11 22:07:00 +02:00
|
|
|
BOOL GetAddress(LPCSTR lpszServerName, INTERNET_PORT nServerPort,
|
|
|
|
struct hostent **phe, struct sockaddr_in *psa);
|
|
|
|
|
|
|
|
void INTERNET_SetLastError(DWORD dwError);
|
|
|
|
DWORD INTERNET_GetLastError();
|
|
|
|
BOOL INTERNET_AsyncCall(LPWORKREQUEST lpWorkRequest);
|
|
|
|
LPSTR INTERNET_GetResponseBuffer();
|
2000-06-11 22:04:44 +02:00
|
|
|
LPSTR INTERNET_GetNextLine(INT nSocket, LPSTR lpszBuffer, LPDWORD dwBuffer);
|
2000-04-11 22:07:00 +02:00
|
|
|
|
|
|
|
BOOL FTP_CloseSessionHandle(LPWININETFTPSESSIONA lpwfs);
|
|
|
|
BOOL FTP_CloseFindNextHandle(LPWININETFINDNEXTA lpwfn);
|
2003-07-21 21:59:03 +02:00
|
|
|
BOOL FTP_CloseFileTransferHandle(LPWININETFILE lpwfn);
|
2000-04-11 22:07:00 +02:00
|
|
|
BOOLAPI FTP_FtpPutFileA(HINTERNET hConnect, LPCSTR lpszLocalFile,
|
|
|
|
LPCSTR lpszNewRemoteFile, DWORD dwFlags, DWORD dwContext);
|
|
|
|
BOOLAPI FTP_FtpSetCurrentDirectoryA(HINTERNET hConnect, LPCSTR lpszDirectory);
|
|
|
|
BOOLAPI FTP_FtpCreateDirectoryA(HINTERNET hConnect, LPCSTR lpszDirectory);
|
|
|
|
INTERNETAPI HINTERNET WINAPI FTP_FtpFindFirstFileA(HINTERNET hConnect,
|
|
|
|
LPCSTR lpszSearchFile, LPWIN32_FIND_DATAA lpFindFileData, DWORD dwFlags, DWORD dwContext);
|
2002-06-01 01:06:46 +02:00
|
|
|
BOOLAPI FTP_FtpGetCurrentDirectoryA(HINTERNET hFtpSession, LPSTR lpszCurrentDirectory,
|
2000-04-11 22:07:00 +02:00
|
|
|
LPDWORD lpdwCurrentDirectory);
|
|
|
|
BOOL FTP_ConvertFileProp(LPFILEPROPERTIESA lpafp, LPWIN32_FIND_DATAA lpFindFileData);
|
|
|
|
BOOL FTP_FtpRenameFileA(HINTERNET hFtpSession, LPCSTR lpszSrc, LPCSTR lpszDest);
|
|
|
|
BOOL FTP_FtpRemoveDirectoryA(HINTERNET hFtpSession, LPCSTR lpszDirectory);
|
|
|
|
BOOL FTP_FtpDeleteFileA(HINTERNET hFtpSession, LPCSTR lpszFileName);
|
2002-06-01 01:06:46 +02:00
|
|
|
HINTERNET FTP_FtpOpenFileA(HINTERNET hFtpSession, LPCSTR lpszFileName,
|
2000-04-11 22:07:00 +02:00
|
|
|
DWORD fdwAccess, DWORD dwFlags, DWORD dwContext);
|
|
|
|
BOOLAPI FTP_FtpGetFileA(HINTERNET hInternet, LPCSTR lpszRemoteFile, LPCSTR lpszNewFile,
|
|
|
|
BOOL fFailIfExists, DWORD dwLocalFlagsAttribute, DWORD dwInternetFlags,
|
|
|
|
DWORD dwContext);
|
|
|
|
|
2000-06-11 22:04:44 +02:00
|
|
|
BOOLAPI HTTP_HttpSendRequestA(HINTERNET hHttpRequest, LPCSTR lpszHeaders,
|
|
|
|
DWORD dwHeaderLength, LPVOID lpOptional ,DWORD dwOptionalLength);
|
|
|
|
INTERNETAPI HINTERNET WINAPI HTTP_HttpOpenRequestA(HINTERNET hHttpSession,
|
|
|
|
LPCSTR lpszVerb, LPCSTR lpszObjectName, LPCSTR lpszVersion,
|
2002-06-01 01:06:46 +02:00
|
|
|
LPCSTR lpszReferrer , LPCSTR *lpszAcceptTypes,
|
2000-06-11 22:04:44 +02:00
|
|
|
DWORD dwFlags, DWORD dwContext);
|
|
|
|
void HTTP_CloseHTTPSessionHandle(LPWININETHTTPSESSIONA lpwhs);
|
|
|
|
void HTTP_CloseHTTPRequestHandle(LPWININETHTTPREQA lpwhr);
|
|
|
|
|
2002-06-22 01:59:49 +02:00
|
|
|
VOID SendAsyncCallback(LPWININETAPPINFOA hIC, HINTERNET hHttpSession,
|
2002-08-29 01:43:43 +02:00
|
|
|
DWORD dwContext, DWORD dwInternetStatus, LPVOID
|
2002-06-22 01:59:49 +02:00
|
|
|
lpvStatusInfo , DWORD dwStatusInfoLength);
|
|
|
|
|
|
|
|
VOID SendAsyncCallbackInt(LPWININETAPPINFOA hIC, HINTERNET hHttpSession,
|
2002-08-29 01:43:43 +02:00
|
|
|
DWORD dwContext, DWORD dwInternetStatus, LPVOID
|
2002-06-22 01:59:49 +02:00
|
|
|
lpvStatusInfo , DWORD dwStatusInfoLength);
|
|
|
|
|
2003-07-22 05:17:52 +02:00
|
|
|
BOOL HTTP_InsertProxyAuthorization( LPWININETHTTPREQA lpwhr,
|
|
|
|
LPCSTR username, LPCSTR password );
|
2000-04-11 22:07:00 +02:00
|
|
|
|
2003-06-21 01:26:56 +02:00
|
|
|
BOOL NETCON_connected(WININET_NETCONNECTION *connection);
|
|
|
|
void NETCON_init(WININET_NETCONNECTION *connnection, BOOL useSSL);
|
|
|
|
BOOL NETCON_create(WININET_NETCONNECTION *connection, int domain,
|
|
|
|
int type, int protocol);
|
|
|
|
BOOL NETCON_close(WININET_NETCONNECTION *connection);
|
|
|
|
BOOL NETCON_connect(WININET_NETCONNECTION *connection, const struct sockaddr *serv_addr,
|
|
|
|
socklen_t addrlen);
|
|
|
|
BOOL NETCON_send(WININET_NETCONNECTION *connection, const void *msg, size_t len, int flags,
|
|
|
|
int *sent /* out */);
|
|
|
|
BOOL NETCON_recv(WININET_NETCONNECTION *connection, void *buf, size_t len, int flags,
|
|
|
|
int *recvd /* out */);
|
|
|
|
BOOL NETCON_getNextLine(WININET_NETCONNECTION *connection, LPSTR lpszBuffer, LPDWORD dwBuffer);
|
|
|
|
|
2000-04-11 22:07:00 +02:00
|
|
|
#define MAX_REPLY_LEN 0x5B4
|
|
|
|
|
2004-02-09 23:01:49 +01:00
|
|
|
/* Used for debugging - maybe need to be shared in the Wine debugging code ? */
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
DWORD val;
|
|
|
|
const char* name;
|
|
|
|
} wininet_flag_info;
|
2000-04-11 22:07:00 +02:00
|
|
|
|
|
|
|
#endif /* _WINE_INTERNET_H_ */
|