Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
067f0960
Commit
067f0960
authored
Dec 03, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Dec 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: global function/data cleanup
Make some functions and a structure static since they are only used in one file.
parent
30121124
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
99 additions
and
101 deletions
+99
-101
ftp.c
dlls/wininet/ftp.c
+41
-41
http.c
dlls/wininet/http.c
+1
-1
internet.c
dlls/wininet/internet.c
+57
-57
internet.h
dlls/wininet/internet.h
+0
-2
No files found.
dlls/wininet/ftp.c
View file @
067f0960
...
@@ -119,30 +119,30 @@ static const WCHAR szNoAccount[] = {'n','o','a','c','c','o','u','n','t','\0'};
...
@@ -119,30 +119,30 @@ static const WCHAR szNoAccount[] = {'n','o','a','c','c','o','u','n','t','\0'};
static
void
FTP_CloseFileTransferHandle
(
LPWININETHANDLEHEADER
hdr
);
static
void
FTP_CloseFileTransferHandle
(
LPWININETHANDLEHEADER
hdr
);
static
void
FTP_CloseSessionHandle
(
LPWININETHANDLEHEADER
hdr
);
static
void
FTP_CloseSessionHandle
(
LPWININETHANDLEHEADER
hdr
);
static
void
FTP_CloseFindNextHandle
(
LPWININETHANDLEHEADER
hdr
);
static
void
FTP_CloseFindNextHandle
(
LPWININETHANDLEHEADER
hdr
);
BOOL
FTP_SendCommand
(
INT
nSocket
,
FTP_COMMAND
ftpCmd
,
LPCWSTR
lpszParam
,
static
BOOL
FTP_SendCommand
(
INT
nSocket
,
FTP_COMMAND
ftpCmd
,
LPCWSTR
lpszParam
,
INTERNET_STATUS_CALLBACK
lpfnStatusCB
,
LPWININETHANDLEHEADER
hdr
,
DWORD
dwContext
);
INTERNET_STATUS_CALLBACK
lpfnStatusCB
,
LPWININETHANDLEHEADER
hdr
,
DWORD
dwContext
);
BOOL
FTP_SendStore
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
DWORD
dwType
);
static
BOOL
FTP_SendStore
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
DWORD
dwType
);
BOOL
FTP_GetDataSocket
(
LPWININETFTPSESSIONW
lpwfs
,
LPINT
nDataSocket
);
static
BOOL
FTP_GetDataSocket
(
LPWININETFTPSESSIONW
lpwfs
,
LPINT
nDataSocket
);
BOOL
FTP_SendData
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nDataSocket
,
HANDLE
hFile
);
static
BOOL
FTP_SendData
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nDataSocket
,
HANDLE
hFile
);
INT
FTP_ReceiveResponse
(
LPWININETFTPSESSIONW
lpwfs
,
DWORD
dwContext
);
static
INT
FTP_ReceiveResponse
(
LPWININETFTPSESSIONW
lpwfs
,
DWORD
dwContext
);
DWORD
FTP_SendRetrieve
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
DWORD
dwType
);
static
DWORD
FTP_SendRetrieve
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
DWORD
dwType
);
BOOL
FTP_RetrieveFileData
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nDataSocket
,
DWORD
nBytes
,
HANDLE
hFile
);
static
BOOL
FTP_RetrieveFileData
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nDataSocket
,
DWORD
nBytes
,
HANDLE
hFile
);
BOOL
FTP_InitListenSocket
(
LPWININETFTPSESSIONW
lpwfs
);
static
BOOL
FTP_InitListenSocket
(
LPWININETFTPSESSIONW
lpwfs
);
BOOL
FTP_ConnectToHost
(
LPWININETFTPSESSIONW
lpwfs
);
static
BOOL
FTP_ConnectToHost
(
LPWININETFTPSESSIONW
lpwfs
);
BOOL
FTP_SendPassword
(
LPWININETFTPSESSIONW
lpwfs
);
static
BOOL
FTP_SendPassword
(
LPWININETFTPSESSIONW
lpwfs
);
BOOL
FTP_SendAccount
(
LPWININETFTPSESSIONW
lpwfs
);
static
BOOL
FTP_SendAccount
(
LPWININETFTPSESSIONW
lpwfs
);
BOOL
FTP_SendType
(
LPWININETFTPSESSIONW
lpwfs
,
DWORD
dwType
);
static
BOOL
FTP_SendType
(
LPWININETFTPSESSIONW
lpwfs
,
DWORD
dwType
);
BOOL
FTP_GetFileSize
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
DWORD
*
dwSize
);
static
BOOL
FTP_GetFileSize
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
DWORD
*
dwSize
);
BOOL
FTP_SendPort
(
LPWININETFTPSESSIONW
lpwfs
);
static
BOOL
FTP_SendPort
(
LPWININETFTPSESSIONW
lpwfs
);
BOOL
FTP_DoPassive
(
LPWININETFTPSESSIONW
lpwfs
);
static
BOOL
FTP_DoPassive
(
LPWININETFTPSESSIONW
lpwfs
);
BOOL
FTP_SendPortOrPasv
(
LPWININETFTPSESSIONW
lpwfs
);
static
BOOL
FTP_SendPortOrPasv
(
LPWININETFTPSESSIONW
lpwfs
);
BOOL
FTP_ParsePermission
(
LPCSTR
lpszPermission
,
LPFILEPROPERTIESW
lpfp
);
static
BOOL
FTP_ParsePermission
(
LPCSTR
lpszPermission
,
LPFILEPROPERTIESW
lpfp
);
BOOL
FTP_ParseNextFile
(
INT
nSocket
,
LPCWSTR
lpszSearchFile
,
LPFILEPROPERTIESW
fileprop
);
static
BOOL
FTP_ParseNextFile
(
INT
nSocket
,
LPCWSTR
lpszSearchFile
,
LPFILEPROPERTIESW
fileprop
);
BOOL
FTP_ParseDirectory
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nSocket
,
LPCWSTR
lpszSearchFile
,
static
BOOL
FTP_ParseDirectory
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nSocket
,
LPCWSTR
lpszSearchFile
,
LPFILEPROPERTIESW
*
lpafp
,
LPDWORD
dwfp
);
LPFILEPROPERTIESW
*
lpafp
,
LPDWORD
dwfp
);
HINTERNET
FTP_ReceiveFileList
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nSocket
,
LPCWSTR
lpszSearchFile
,
static
HINTERNET
FTP_ReceiveFileList
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nSocket
,
LPCWSTR
lpszSearchFile
,
LPWIN32_FIND_DATAW
lpFindFileData
,
DWORD
dwContext
);
LPWIN32_FIND_DATAW
lpFindFileData
,
DWORD
dwContext
);
DWORD
FTP_SetResponseError
(
DWORD
dwResponse
);
static
DWORD
FTP_SetResponseError
(
DWORD
dwResponse
);
/***********************************************************************
/***********************************************************************
* FtpPutFileA (WININET.@)
* FtpPutFileA (WININET.@)
...
@@ -1809,7 +1809,7 @@ lerror:
...
@@ -1809,7 +1809,7 @@ lerror:
* NULL on failure
* NULL on failure
*
*
*/
*/
BOOL
FTP_ConnectToHost
(
LPWININETFTPSESSIONW
lpwfs
)
static
BOOL
FTP_ConnectToHost
(
LPWININETFTPSESSIONW
lpwfs
)
{
{
INT
nResCode
;
INT
nResCode
;
BOOL
bSuccess
=
FALSE
;
BOOL
bSuccess
=
FALSE
;
...
@@ -1917,7 +1917,7 @@ static BOOL FTP_SendCommandA(INT nSocket, FTP_COMMAND ftpCmd, LPCSTR lpszParam,
...
@@ -1917,7 +1917,7 @@ static BOOL FTP_SendCommandA(INT nSocket, FTP_COMMAND ftpCmd, LPCSTR lpszParam,
* NULL on failure
* NULL on failure
*
*
*/
*/
BOOL
FTP_SendCommand
(
INT
nSocket
,
FTP_COMMAND
ftpCmd
,
LPCWSTR
lpszParam
,
static
BOOL
FTP_SendCommand
(
INT
nSocket
,
FTP_COMMAND
ftpCmd
,
LPCWSTR
lpszParam
,
INTERNET_STATUS_CALLBACK
lpfnStatusCB
,
LPWININETHANDLEHEADER
hdr
,
DWORD
dwContext
)
INTERNET_STATUS_CALLBACK
lpfnStatusCB
,
LPWININETHANDLEHEADER
hdr
,
DWORD
dwContext
)
{
{
BOOL
ret
;
BOOL
ret
;
...
@@ -2002,7 +2002,7 @@ lerror:
...
@@ -2002,7 +2002,7 @@ lerror:
* NULL on failure
* NULL on failure
*
*
*/
*/
BOOL
FTP_SendPassword
(
LPWININETFTPSESSIONW
lpwfs
)
static
BOOL
FTP_SendPassword
(
LPWININETFTPSESSIONW
lpwfs
)
{
{
INT
nResCode
;
INT
nResCode
;
BOOL
bSuccess
=
FALSE
;
BOOL
bSuccess
=
FALSE
;
...
@@ -2042,7 +2042,7 @@ lend:
...
@@ -2042,7 +2042,7 @@ lend:
* FALSE on failure
* FALSE on failure
*
*
*/
*/
BOOL
FTP_SendAccount
(
LPWININETFTPSESSIONW
lpwfs
)
static
BOOL
FTP_SendAccount
(
LPWININETFTPSESSIONW
lpwfs
)
{
{
INT
nResCode
;
INT
nResCode
;
BOOL
bSuccess
=
FALSE
;
BOOL
bSuccess
=
FALSE
;
...
@@ -2072,7 +2072,7 @@ lend:
...
@@ -2072,7 +2072,7 @@ lend:
* FALSE on failure
* FALSE on failure
*
*
*/
*/
BOOL
FTP_SendStore
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
DWORD
dwType
)
static
BOOL
FTP_SendStore
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
DWORD
dwType
)
{
{
INT
nResCode
;
INT
nResCode
;
BOOL
bSuccess
=
FALSE
;
BOOL
bSuccess
=
FALSE
;
...
@@ -2119,7 +2119,7 @@ lend:
...
@@ -2119,7 +2119,7 @@ lend:
* FALSE on failure
* FALSE on failure
*
*
*/
*/
BOOL
FTP_InitListenSocket
(
LPWININETFTPSESSIONW
lpwfs
)
static
BOOL
FTP_InitListenSocket
(
LPWININETFTPSESSIONW
lpwfs
)
{
{
BOOL
bSuccess
=
FALSE
;
BOOL
bSuccess
=
FALSE
;
size_t
namelen
=
sizeof
(
struct
sockaddr_in
);
size_t
namelen
=
sizeof
(
struct
sockaddr_in
);
...
@@ -2178,7 +2178,7 @@ lend:
...
@@ -2178,7 +2178,7 @@ lend:
* (i.e. it sends it always),
* (i.e. it sends it always),
* so we probably don't want to do that either.
* so we probably don't want to do that either.
*/
*/
BOOL
FTP_SendType
(
LPWININETFTPSESSIONW
lpwfs
,
DWORD
dwType
)
static
BOOL
FTP_SendType
(
LPWININETFTPSESSIONW
lpwfs
,
DWORD
dwType
)
{
{
INT
nResCode
;
INT
nResCode
;
WCHAR
type
[]
=
{
'I'
,
'\0'
};
WCHAR
type
[]
=
{
'I'
,
'\0'
};
...
@@ -2214,7 +2214,7 @@ lend:
...
@@ -2214,7 +2214,7 @@ lend:
* FALSE on failure
* FALSE on failure
*
*
*/
*/
BOOL
FTP_GetFileSize
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
DWORD
*
dwSize
)
static
BOOL
FTP_GetFileSize
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
DWORD
*
dwSize
)
{
{
INT
nResCode
;
INT
nResCode
;
BOOL
bSuccess
=
FALSE
;
BOOL
bSuccess
=
FALSE
;
...
@@ -2257,7 +2257,7 @@ lend:
...
@@ -2257,7 +2257,7 @@ lend:
* FALSE on failure
* FALSE on failure
*
*
*/
*/
BOOL
FTP_SendPort
(
LPWININETFTPSESSIONW
lpwfs
)
static
BOOL
FTP_SendPort
(
LPWININETFTPSESSIONW
lpwfs
)
{
{
static
const
WCHAR
szIPFormat
[]
=
{
'%'
,
'd'
,
','
,
'%'
,
'd'
,
','
,
'%'
,
'd'
,
','
,
'%'
,
'd'
,
','
,
'%'
,
'd'
,
','
,
'%'
,
'd'
,
'\0'
};
static
const
WCHAR
szIPFormat
[]
=
{
'%'
,
'd'
,
','
,
'%'
,
'd'
,
','
,
'%'
,
'd'
,
','
,
'%'
,
'd'
,
','
,
'%'
,
'd'
,
','
,
'%'
,
'd'
,
'\0'
};
INT
nResCode
;
INT
nResCode
;
...
@@ -2301,7 +2301,7 @@ lend:
...
@@ -2301,7 +2301,7 @@ lend:
* FALSE on failure
* FALSE on failure
*
*
*/
*/
BOOL
FTP_DoPassive
(
LPWININETFTPSESSIONW
lpwfs
)
static
BOOL
FTP_DoPassive
(
LPWININETFTPSESSIONW
lpwfs
)
{
{
INT
nResCode
;
INT
nResCode
;
BOOL
bSuccess
=
FALSE
;
BOOL
bSuccess
=
FALSE
;
...
@@ -2379,7 +2379,7 @@ lend:
...
@@ -2379,7 +2379,7 @@ lend:
}
}
BOOL
FTP_SendPortOrPasv
(
LPWININETFTPSESSIONW
lpwfs
)
static
BOOL
FTP_SendPortOrPasv
(
LPWININETFTPSESSIONW
lpwfs
)
{
{
if
(
lpwfs
->
hdr
.
dwFlags
&
INTERNET_FLAG_PASSIVE
)
if
(
lpwfs
->
hdr
.
dwFlags
&
INTERNET_FLAG_PASSIVE
)
{
{
...
@@ -2408,7 +2408,7 @@ BOOL FTP_SendPortOrPasv(LPWININETFTPSESSIONW lpwfs)
...
@@ -2408,7 +2408,7 @@ BOOL FTP_SendPortOrPasv(LPWININETFTPSESSIONW lpwfs)
* FALSE on failure
* FALSE on failure
*
*
*/
*/
BOOL
FTP_GetDataSocket
(
LPWININETFTPSESSIONW
lpwfs
,
LPINT
nDataSocket
)
static
BOOL
FTP_GetDataSocket
(
LPWININETFTPSESSIONW
lpwfs
,
LPINT
nDataSocket
)
{
{
struct
sockaddr_in
saddr
;
struct
sockaddr_in
saddr
;
size_t
addrlen
=
sizeof
(
struct
sockaddr
);
size_t
addrlen
=
sizeof
(
struct
sockaddr
);
...
@@ -2438,7 +2438,7 @@ BOOL FTP_GetDataSocket(LPWININETFTPSESSIONW lpwfs, LPINT nDataSocket)
...
@@ -2438,7 +2438,7 @@ BOOL FTP_GetDataSocket(LPWININETFTPSESSIONW lpwfs, LPINT nDataSocket)
* FALSE on failure
* FALSE on failure
*
*
*/
*/
BOOL
FTP_SendData
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nDataSocket
,
HANDLE
hFile
)
static
BOOL
FTP_SendData
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nDataSocket
,
HANDLE
hFile
)
{
{
BY_HANDLE_FILE_INFORMATION
fi
;
BY_HANDLE_FILE_INFORMATION
fi
;
DWORD
nBytesRead
=
0
;
DWORD
nBytesRead
=
0
;
...
@@ -2520,7 +2520,7 @@ BOOL FTP_SendData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, HANDLE hFile)
...
@@ -2520,7 +2520,7 @@ BOOL FTP_SendData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, HANDLE hFile)
* 0 on failure
* 0 on failure
*
*
*/
*/
DWORD
FTP_SendRetrieve
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
DWORD
dwType
)
static
DWORD
FTP_SendRetrieve
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
DWORD
dwType
)
{
{
INT
nResCode
;
INT
nResCode
;
DWORD
nResult
=
0
;
DWORD
nResult
=
0
;
...
@@ -2570,7 +2570,7 @@ lend:
...
@@ -2570,7 +2570,7 @@ lend:
* FALSE on failure
* FALSE on failure
*
*
*/
*/
BOOL
FTP_RetrieveFileData
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nDataSocket
,
DWORD
nBytes
,
HANDLE
hFile
)
static
BOOL
FTP_RetrieveFileData
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nDataSocket
,
DWORD
nBytes
,
HANDLE
hFile
)
{
{
DWORD
nBytesWritten
;
DWORD
nBytesWritten
;
DWORD
nBytesReceived
=
0
;
DWORD
nBytesReceived
=
0
;
...
@@ -2711,7 +2711,7 @@ static void FTP_CloseFileTransferHandle(LPWININETHANDLEHEADER hdr)
...
@@ -2711,7 +2711,7 @@ static void FTP_CloseFileTransferHandle(LPWININETHANDLEHEADER hdr)
* NULL on failure
* NULL on failure
*
*
*/
*/
HINTERNET
FTP_ReceiveFileList
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nSocket
,
LPCWSTR
lpszSearchFile
,
static
HINTERNET
FTP_ReceiveFileList
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nSocket
,
LPCWSTR
lpszSearchFile
,
LPWIN32_FIND_DATAW
lpFindFileData
,
DWORD
dwContext
)
LPWIN32_FIND_DATAW
lpFindFileData
,
DWORD
dwContext
)
{
{
DWORD
dwSize
=
0
;
DWORD
dwSize
=
0
;
...
@@ -2800,7 +2800,7 @@ BOOL FTP_ConvertFileProp(LPFILEPROPERTIESW lpafp, LPWIN32_FIND_DATAW lpFindFileD
...
@@ -2800,7 +2800,7 @@ BOOL FTP_ConvertFileProp(LPFILEPROPERTIESW lpafp, LPWIN32_FIND_DATAW lpFindFileD
* TRUE on success
* TRUE on success
* FALSE on failure
* FALSE on failure
*/
*/
BOOL
FTP_ParseNextFile
(
INT
nSocket
,
LPCWSTR
lpszSearchFile
,
LPFILEPROPERTIESW
lpfp
)
static
BOOL
FTP_ParseNextFile
(
INT
nSocket
,
LPCWSTR
lpszSearchFile
,
LPFILEPROPERTIESW
lpfp
)
{
{
static
const
char
szSpace
[]
=
"
\t
"
;
static
const
char
szSpace
[]
=
"
\t
"
;
DWORD
nBufLen
;
DWORD
nBufLen
;
...
@@ -2965,7 +2965,7 @@ BOOL FTP_ParseNextFile(INT nSocket, LPCWSTR lpszSearchFile, LPFILEPROPERTIESW lp
...
@@ -2965,7 +2965,7 @@ BOOL FTP_ParseNextFile(INT nSocket, LPCWSTR lpszSearchFile, LPFILEPROPERTIESW lp
* TRUE on success
* TRUE on success
* FALSE on failure
* FALSE on failure
*/
*/
BOOL
FTP_ParseDirectory
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nSocket
,
LPCWSTR
lpszSearchFile
,
static
BOOL
FTP_ParseDirectory
(
LPWININETFTPSESSIONW
lpwfs
,
INT
nSocket
,
LPCWSTR
lpszSearchFile
,
LPFILEPROPERTIESW
*
lpafp
,
LPDWORD
dwfp
)
LPFILEPROPERTIESW
*
lpafp
,
LPDWORD
dwfp
)
{
{
BOOL
bSuccess
=
TRUE
;
BOOL
bSuccess
=
TRUE
;
...
@@ -3032,7 +3032,7 @@ BOOL FTP_ParseDirectory(LPWININETFTPSESSIONW lpwfs, INT nSocket, LPCWSTR lpszSea
...
@@ -3032,7 +3032,7 @@ BOOL FTP_ParseDirectory(LPWININETFTPSESSIONW lpwfs, INT nSocket, LPCWSTR lpszSea
* FALSE on failure
* FALSE on failure
*
*
*/
*/
BOOL
FTP_ParsePermission
(
LPCSTR
lpszPermission
,
LPFILEPROPERTIESW
lpfp
)
static
BOOL
FTP_ParsePermission
(
LPCSTR
lpszPermission
,
LPFILEPROPERTIESW
lpfp
)
{
{
BOOL
bSuccess
=
TRUE
;
BOOL
bSuccess
=
TRUE
;
unsigned
short
nPermission
=
0
;
unsigned
short
nPermission
=
0
;
...
@@ -3095,7 +3095,7 @@ BOOL FTP_ParsePermission(LPCSTR lpszPermission, LPFILEPROPERTIESW lpfp)
...
@@ -3095,7 +3095,7 @@ BOOL FTP_ParsePermission(LPCSTR lpszPermission, LPFILEPROPERTIESW lpfp)
* RETURNS
* RETURNS
*
*
*/
*/
DWORD
FTP_SetResponseError
(
DWORD
dwResponse
)
static
DWORD
FTP_SetResponseError
(
DWORD
dwResponse
)
{
{
DWORD
dwCode
=
0
;
DWORD
dwCode
=
0
;
...
...
dlls/wininet/http.c
View file @
067f0960
...
@@ -2579,7 +2579,7 @@ static const WCHAR szWarning[] = { 'W','a','r','n','i','n','g',0 };
...
@@ -2579,7 +2579,7 @@ static const WCHAR szWarning[] = { 'W','a','r','n','i','n','g',0 };
static
const
WCHAR
szWWW_Authenticate
[]
=
{
'W'
,
'W'
,
'W'
,
'-'
,
'A'
,
'u'
,
't'
,
'h'
,
'e'
,
'n'
,
't'
,
'i'
,
'c'
,
'a'
,
't'
,
'e'
,
0
};
static
const
WCHAR
szWWW_Authenticate
[]
=
{
'W'
,
'W'
,
'W'
,
'-'
,
'A'
,
'u'
,
't'
,
'h'
,
'e'
,
'n'
,
't'
,
'i'
,
'c'
,
'a'
,
't'
,
'e'
,
0
};
/* Note: Must be kept sorted! */
/* Note: Must be kept sorted! */
const
std_hdr_data
SORTED_STANDARD_HEADERS
[]
=
{
static
const
std_hdr_data
SORTED_STANDARD_HEADERS
[]
=
{
{
szAccept
,
HTTP_QUERY_ACCEPT
,
REQUEST_HDR
,},
{
szAccept
,
HTTP_QUERY_ACCEPT
,
REQUEST_HDR
,},
{
szAccept_Charset
,
HTTP_QUERY_ACCEPT_CHARSET
,
REQUEST_HDR
,},
{
szAccept_Charset
,
HTTP_QUERY_ACCEPT_CHARSET
,
REQUEST_HDR
,},
{
szAccept_Encoding
,
HTTP_QUERY_ACCEPT_ENCODING
,
REQUEST_HDR
,},
{
szAccept_Encoding
,
HTTP_QUERY_ACCEPT_ENCODING
,
REQUEST_HDR
,},
...
...
dlls/wininet/internet.c
View file @
067f0960
...
@@ -423,6 +423,63 @@ static BOOL INTERNET_ConfigureProxyFromReg( LPWININETAPPINFOW lpwai )
...
@@ -423,6 +423,63 @@ static BOOL INTERNET_ConfigureProxyFromReg( LPWININETAPPINFOW lpwai )
}
}
/***********************************************************************
/***********************************************************************
* dump_INTERNET_FLAGS
*
* Helper function to TRACE the internet flags.
*
* RETURNS
* None
*
*/
static
void
dump_INTERNET_FLAGS
(
DWORD
dwFlags
)
{
#define FE(x) { x, #x }
static
const
wininet_flag_info
flag
[]
=
{
FE
(
INTERNET_FLAG_RELOAD
),
FE
(
INTERNET_FLAG_RAW_DATA
),
FE
(
INTERNET_FLAG_EXISTING_CONNECT
),
FE
(
INTERNET_FLAG_ASYNC
),
FE
(
INTERNET_FLAG_PASSIVE
),
FE
(
INTERNET_FLAG_NO_CACHE_WRITE
),
FE
(
INTERNET_FLAG_MAKE_PERSISTENT
),
FE
(
INTERNET_FLAG_FROM_CACHE
),
FE
(
INTERNET_FLAG_SECURE
),
FE
(
INTERNET_FLAG_KEEP_CONNECTION
),
FE
(
INTERNET_FLAG_NO_AUTO_REDIRECT
),
FE
(
INTERNET_FLAG_READ_PREFETCH
),
FE
(
INTERNET_FLAG_NO_COOKIES
),
FE
(
INTERNET_FLAG_NO_AUTH
),
FE
(
INTERNET_FLAG_CACHE_IF_NET_FAIL
),
FE
(
INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP
),
FE
(
INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS
),
FE
(
INTERNET_FLAG_IGNORE_CERT_DATE_INVALID
),
FE
(
INTERNET_FLAG_IGNORE_CERT_CN_INVALID
),
FE
(
INTERNET_FLAG_RESYNCHRONIZE
),
FE
(
INTERNET_FLAG_HYPERLINK
),
FE
(
INTERNET_FLAG_NO_UI
),
FE
(
INTERNET_FLAG_PRAGMA_NOCACHE
),
FE
(
INTERNET_FLAG_CACHE_ASYNC
),
FE
(
INTERNET_FLAG_FORMS_SUBMIT
),
FE
(
INTERNET_FLAG_NEED_FILE
),
FE
(
INTERNET_FLAG_TRANSFER_ASCII
),
FE
(
INTERNET_FLAG_TRANSFER_BINARY
)
};
#undef FE
int
i
;
for
(
i
=
0
;
i
<
(
sizeof
(
flag
)
/
sizeof
(
flag
[
0
]));
i
++
)
{
if
(
flag
[
i
].
val
&
dwFlags
)
{
TRACE
(
" %s"
,
flag
[
i
].
name
);
dwFlags
&=
~
flag
[
i
].
val
;
}
}
if
(
dwFlags
)
TRACE
(
" Unknown flags (%08lx)
\n
"
,
dwFlags
);
else
TRACE
(
"
\n
"
);
}
/***********************************************************************
* InternetOpenW (WININET.@)
* InternetOpenW (WININET.@)
*
*
* Per-application initialization of wininet
* Per-application initialization of wininet
...
@@ -3965,60 +4022,3 @@ BOOL WINAPI ResumeSuspendedDownload( HINTERNET hInternet, DWORD dwError )
...
@@ -3965,60 +4022,3 @@ BOOL WINAPI ResumeSuspendedDownload( HINTERNET hInternet, DWORD dwError )
FIXME
(
"(%p, 0x%08lx) stub
\n
"
,
hInternet
,
dwError
);
FIXME
(
"(%p, 0x%08lx) stub
\n
"
,
hInternet
,
dwError
);
return
FALSE
;
return
FALSE
;
}
}
/***********************************************************************
* dump_INTERNET_FLAGS
*
* Helper function to TRACE the internet flags.
*
* RETURNS
* None
*
*/
void
dump_INTERNET_FLAGS
(
DWORD
dwFlags
)
{
#define FE(x) { x, #x }
static
const
wininet_flag_info
flag
[]
=
{
FE
(
INTERNET_FLAG_RELOAD
),
FE
(
INTERNET_FLAG_RAW_DATA
),
FE
(
INTERNET_FLAG_EXISTING_CONNECT
),
FE
(
INTERNET_FLAG_ASYNC
),
FE
(
INTERNET_FLAG_PASSIVE
),
FE
(
INTERNET_FLAG_NO_CACHE_WRITE
),
FE
(
INTERNET_FLAG_MAKE_PERSISTENT
),
FE
(
INTERNET_FLAG_FROM_CACHE
),
FE
(
INTERNET_FLAG_SECURE
),
FE
(
INTERNET_FLAG_KEEP_CONNECTION
),
FE
(
INTERNET_FLAG_NO_AUTO_REDIRECT
),
FE
(
INTERNET_FLAG_READ_PREFETCH
),
FE
(
INTERNET_FLAG_NO_COOKIES
),
FE
(
INTERNET_FLAG_NO_AUTH
),
FE
(
INTERNET_FLAG_CACHE_IF_NET_FAIL
),
FE
(
INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP
),
FE
(
INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS
),
FE
(
INTERNET_FLAG_IGNORE_CERT_DATE_INVALID
),
FE
(
INTERNET_FLAG_IGNORE_CERT_CN_INVALID
),
FE
(
INTERNET_FLAG_RESYNCHRONIZE
),
FE
(
INTERNET_FLAG_HYPERLINK
),
FE
(
INTERNET_FLAG_NO_UI
),
FE
(
INTERNET_FLAG_PRAGMA_NOCACHE
),
FE
(
INTERNET_FLAG_CACHE_ASYNC
),
FE
(
INTERNET_FLAG_FORMS_SUBMIT
),
FE
(
INTERNET_FLAG_NEED_FILE
),
FE
(
INTERNET_FLAG_TRANSFER_ASCII
),
FE
(
INTERNET_FLAG_TRANSFER_BINARY
)
};
#undef FE
int
i
;
for
(
i
=
0
;
i
<
(
sizeof
(
flag
)
/
sizeof
(
flag
[
0
]));
i
++
)
{
if
(
flag
[
i
].
val
&
dwFlags
)
{
TRACE
(
" %s"
,
flag
[
i
].
name
);
dwFlags
&=
~
flag
[
i
].
val
;
}
}
if
(
dwFlags
)
TRACE
(
" Unknown flags (%08lx)
\n
"
,
dwFlags
);
else
TRACE
(
"
\n
"
);
}
dlls/wininet/internet.h
View file @
067f0960
...
@@ -490,6 +490,4 @@ typedef struct
...
@@ -490,6 +490,4 @@ typedef struct
const
char
*
name
;
const
char
*
name
;
}
wininet_flag_info
;
}
wininet_flag_info
;
extern
void
dump_INTERNET_FLAGS
(
DWORD
dwFlags
)
;
#endif
/* _WINE_INTERNET_H_ */
#endif
/* _WINE_INTERNET_H_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment