ReactOS 0.4.16-dev-340-g0540c21
winineti.h File Reference
#include <schannel.h>
#include <sspi.h>
Include dependency graph for winineti.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _INTERNET_CACHE_CONFIG_PATH_ENTRYA
 
struct  _INTERNET_CACHE_CONFIG_PATH_ENTRYW
 
struct  _INTERNET_CACHE_CONFIG_INFOA
 
struct  _INTERNET_CACHE_CONFIG_INFOW
 

Macros

#define CACHE_CONFIG_FORCE_CLEANUP_FC   0x00000020
 
#define CACHE_CONFIG_DISK_CACHE_PATHS_FC   0x00000040
 
#define CACHE_CONFIG_SYNC_MODE_FC   0x00000080
 
#define CACHE_CONFIG_CONTENT_PATHS_FC   0x00000100
 
#define CACHE_CONFIG_COOKIES_PATHS_FC   0x00000200
 
#define CACHE_CONFIG_HISTORY_PATHS_FC   0x00000400
 
#define CACHE_CONFIG_QUOTA_FC   0x00000800
 
#define CACHE_CONFIG_USER_MODE_FC   0x00001000
 
#define CACHE_CONFIG_CONTENT_USAGE_FC   0x00002000
 
#define CACHE_CONFIG_STICKY_CONTENT_USAGE_FC   0x00004000
 
#define ERROR_INTERNET_NO_NEW_CONTAINERS   (INTERNET_ERROR_BASE + 51)
 
#define ERROR_INTERNET_SOURCE_PORT_IN_USE   (INTERNET_ERROR_BASE + 58)
 
#define ERROR_INTERNET_INSECURE_FALLBACK_REQUIRED   (INTERNET_ERROR_BASE + 59)
 
#define ERROR_INTERNET_PROXY_ALERT   (INTERNET_ERROR_BASE + 61)
 
#define ERROR_INTERNET_NO_CM_CONNECTION   (INTERNET_ERROR_BASE + 80)
 
#define ERROR_HTTP_PUSH_STATUS_CODE_NOT_SUPPORTED   (INTERNET_ERROR_BASE + 147)
 
#define ERROR_HTTP_PUSH_RETRY_NOT_SUPPORTED   (INTERNET_ERROR_BASE + 148)
 
#define ERROR_HTTP_PUSH_ENABLE_FAILED   (INTERNET_ERROR_BASE + 149)
 
#define ERROR_INTERNET_OFFLINE   ERROR_INTERNET_DISCONNECTED
 
#define GetUrlCacheConfigInfo   WINELIB_NAME_AW(GetUrlCacheConfigInfo)
 
#define IsUrlCacheEntryExpired   WINELIB_NAME_AW(IsUrlCacheEntryExpired)
 
#define SetUrlCacheConfigInfo   WINELIB_NAME_AW(SetUrlCacheConfigInfo)
 
#define InternetGetSecurityInfoByURL   WINELIB_NAME_AW(InternetGetSecurityInfoByURL)
 

Typedefs

typedef struct _INTERNET_CACHE_CONFIG_PATH_ENTRYA INTERNET_CACHE_CONFIG_PATH_ENTRYA
 
typedef struct _INTERNET_CACHE_CONFIG_PATH_ENTRYALPINTERNET_CACHE_CONFIG_PATH_ENTRYA
 
typedef struct _INTERNET_CACHE_CONFIG_PATH_ENTRYW INTERNET_CACHE_CONFIG_PATH_ENTRYW
 
typedef struct _INTERNET_CACHE_CONFIG_PATH_ENTRYWLPINTERNET_CACHE_CONFIG_PATH_ENTRYW
 
typedef struct _INTERNET_CACHE_CONFIG_INFOA INTERNET_CACHE_CONFIG_INFOA
 
typedef struct _INTERNET_CACHE_CONFIG_INFOALPINTERNET_CACHE_CONFIG_INFOA
 
typedef struct _INTERNET_CACHE_CONFIG_INFOW INTERNET_CACHE_CONFIG_INFOW
 
typedef struct _INTERNET_CACHE_CONFIG_INFOWLPINTERNET_CACHE_CONFIG_INFOW
 

Enumerations

enum  WININET_SYNC_MODE {
  WININET_SYNC_MODE_NEVER = 0 , WININET_SYNC_MODE_ON_EXPIRY , WININET_SYNC_MODE_ONCE_PER_SESSION , WININET_SYNC_MODE_ALWAYS ,
  WININET_SYNC_MODE_AUTOMATIC , WININET_SYNC_MODE_DEFAULT = WININET_SYNC_MODE_AUTOMATIC
}
 

Functions

DWORD WINAPI DeleteIE3Cache (HWND, HINSTANCE, LPSTR, int)
 
BOOL WINAPI GetDiskInfoA (PCSTR, PDWORD, PDWORDLONG, PDWORDLONG)
 
BOOL WINAPI GetUrlCacheConfigInfoA (LPINTERNET_CACHE_CONFIG_INFOA, LPDWORD, DWORD)
 
BOOL WINAPI GetUrlCacheConfigInfoW (LPINTERNET_CACHE_CONFIG_INFOW, LPDWORD, DWORD)
 
BOOL WINAPI IncrementUrlCacheHeaderData (DWORD, LPDWORD)
 
BOOL WINAPI InternetQueryFortezzaStatus (DWORD *, DWORD_PTR)
 
BOOL WINAPI IsUrlCacheEntryExpiredA (LPCSTR, DWORD, FILETIME *)
 
BOOL WINAPI IsUrlCacheEntryExpiredW (LPCWSTR, DWORD, FILETIME *)
 
BOOL WINAPI SetUrlCacheConfigInfoA (LPINTERNET_CACHE_CONFIG_INFOA, DWORD)
 
BOOL WINAPI SetUrlCacheConfigInfoW (LPINTERNET_CACHE_CONFIG_INFOW, DWORD)
 
BOOL WINAPI InternetGetSecurityInfoByURLA (LPSTR, PCCERT_CHAIN_CONTEXT *, DWORD *)
 
BOOL WINAPI InternetGetSecurityInfoByURLW (LPCWSTR, PCCERT_CHAIN_CONTEXT *, DWORD *)
 

Macro Definition Documentation

◆ CACHE_CONFIG_CONTENT_PATHS_FC

#define CACHE_CONFIG_CONTENT_PATHS_FC   0x00000100

Definition at line 101 of file winineti.h.

◆ CACHE_CONFIG_CONTENT_USAGE_FC

#define CACHE_CONFIG_CONTENT_USAGE_FC   0x00002000

Definition at line 106 of file winineti.h.

◆ CACHE_CONFIG_COOKIES_PATHS_FC

#define CACHE_CONFIG_COOKIES_PATHS_FC   0x00000200

Definition at line 102 of file winineti.h.

◆ CACHE_CONFIG_DISK_CACHE_PATHS_FC

#define CACHE_CONFIG_DISK_CACHE_PATHS_FC   0x00000040

Definition at line 99 of file winineti.h.

◆ CACHE_CONFIG_FORCE_CLEANUP_FC

#define CACHE_CONFIG_FORCE_CLEANUP_FC   0x00000020

Definition at line 98 of file winineti.h.

◆ CACHE_CONFIG_HISTORY_PATHS_FC

#define CACHE_CONFIG_HISTORY_PATHS_FC   0x00000400

Definition at line 103 of file winineti.h.

◆ CACHE_CONFIG_QUOTA_FC

#define CACHE_CONFIG_QUOTA_FC   0x00000800

Definition at line 104 of file winineti.h.

◆ CACHE_CONFIG_STICKY_CONTENT_USAGE_FC

#define CACHE_CONFIG_STICKY_CONTENT_USAGE_FC   0x00004000

Definition at line 107 of file winineti.h.

◆ CACHE_CONFIG_SYNC_MODE_FC

#define CACHE_CONFIG_SYNC_MODE_FC   0x00000080

Definition at line 100 of file winineti.h.

◆ CACHE_CONFIG_USER_MODE_FC

#define CACHE_CONFIG_USER_MODE_FC   0x00001000

Definition at line 105 of file winineti.h.

◆ ERROR_HTTP_PUSH_ENABLE_FAILED

#define ERROR_HTTP_PUSH_ENABLE_FAILED   (INTERNET_ERROR_BASE + 149)

Definition at line 116 of file winineti.h.

◆ ERROR_HTTP_PUSH_RETRY_NOT_SUPPORTED

#define ERROR_HTTP_PUSH_RETRY_NOT_SUPPORTED   (INTERNET_ERROR_BASE + 148)

Definition at line 115 of file winineti.h.

◆ ERROR_HTTP_PUSH_STATUS_CODE_NOT_SUPPORTED

#define ERROR_HTTP_PUSH_STATUS_CODE_NOT_SUPPORTED   (INTERNET_ERROR_BASE + 147)

Definition at line 114 of file winineti.h.

◆ ERROR_INTERNET_INSECURE_FALLBACK_REQUIRED

#define ERROR_INTERNET_INSECURE_FALLBACK_REQUIRED   (INTERNET_ERROR_BASE + 59)

Definition at line 111 of file winineti.h.

◆ ERROR_INTERNET_NO_CM_CONNECTION

#define ERROR_INTERNET_NO_CM_CONNECTION   (INTERNET_ERROR_BASE + 80)

Definition at line 113 of file winineti.h.

◆ ERROR_INTERNET_NO_NEW_CONTAINERS

#define ERROR_INTERNET_NO_NEW_CONTAINERS   (INTERNET_ERROR_BASE + 51)

Definition at line 109 of file winineti.h.

◆ ERROR_INTERNET_OFFLINE

#define ERROR_INTERNET_OFFLINE   ERROR_INTERNET_DISCONNECTED

Definition at line 118 of file winineti.h.

◆ ERROR_INTERNET_PROXY_ALERT

#define ERROR_INTERNET_PROXY_ALERT   (INTERNET_ERROR_BASE + 61)

Definition at line 112 of file winineti.h.

◆ ERROR_INTERNET_SOURCE_PORT_IN_USE

#define ERROR_INTERNET_SOURCE_PORT_IN_USE   (INTERNET_ERROR_BASE + 58)

Definition at line 110 of file winineti.h.

◆ GetUrlCacheConfigInfo

#define GetUrlCacheConfigInfo   WINELIB_NAME_AW(GetUrlCacheConfigInfo)

Definition at line 128 of file winineti.h.

◆ InternetGetSecurityInfoByURL

#define InternetGetSecurityInfoByURL   WINELIB_NAME_AW(InternetGetSecurityInfoByURL)

Definition at line 139 of file winineti.h.

◆ IsUrlCacheEntryExpired

#define IsUrlCacheEntryExpired   WINELIB_NAME_AW(IsUrlCacheEntryExpired)

Definition at line 133 of file winineti.h.

◆ SetUrlCacheConfigInfo

#define SetUrlCacheConfigInfo   WINELIB_NAME_AW(SetUrlCacheConfigInfo)

Definition at line 136 of file winineti.h.

Typedef Documentation

◆ INTERNET_CACHE_CONFIG_INFOA

◆ INTERNET_CACHE_CONFIG_INFOW

◆ INTERNET_CACHE_CONFIG_PATH_ENTRYA

◆ INTERNET_CACHE_CONFIG_PATH_ENTRYW

◆ LPINTERNET_CACHE_CONFIG_INFOA

◆ LPINTERNET_CACHE_CONFIG_INFOW

◆ LPINTERNET_CACHE_CONFIG_PATH_ENTRYA

◆ LPINTERNET_CACHE_CONFIG_PATH_ENTRYW

Enumeration Type Documentation

◆ WININET_SYNC_MODE

Enumerator
WININET_SYNC_MODE_NEVER 
WININET_SYNC_MODE_ON_EXPIRY 
WININET_SYNC_MODE_ONCE_PER_SESSION 
WININET_SYNC_MODE_ALWAYS 
WININET_SYNC_MODE_AUTOMATIC 
WININET_SYNC_MODE_DEFAULT 

Definition at line 88 of file winineti.h.

88 {
WININET_SYNC_MODE
Definition: winineti.h:88
@ WININET_SYNC_MODE_ON_EXPIRY
Definition: winineti.h:90
@ WININET_SYNC_MODE_NEVER
Definition: winineti.h:89
@ WININET_SYNC_MODE_ONCE_PER_SESSION
Definition: winineti.h:91
@ WININET_SYNC_MODE_ALWAYS
Definition: winineti.h:92
@ WININET_SYNC_MODE_AUTOMATIC
Definition: winineti.h:93
@ WININET_SYNC_MODE_DEFAULT
Definition: winineti.h:94

Function Documentation

◆ DeleteIE3Cache()

DWORD WINAPI DeleteIE3Cache ( HWND  hWnd,
HINSTANCE  hInst,
LPSTR  lpszCmdLine,
int  nCmdShow 
)

Definition at line 3946 of file urlcache.c.

3947{
3948 FIXME("(%p, %p, %s, %d)\n", hWnd, hInst, debugstr_a(lpszCmdLine), nCmdShow);
3949 return 0;
3950}
HWND hWnd
Definition: settings.c:17
#define FIXME(fmt,...)
Definition: precomp.h:53
HINSTANCE hInst
Definition: dxdiag.c:13
#define debugstr_a
Definition: kernel32.h:31

◆ GetDiskInfoA()

BOOL WINAPI GetDiskInfoA ( PCSTR  path,
PDWORD  cluster_size,
PDWORDLONG  free,
PDWORDLONG  total 
)

Definition at line 4062 of file urlcache.c.

4063{
4064 BOOL ret;
4065 ULARGE_INTEGER bytes_free, bytes_total;
4066
4067 TRACE("(%s, %p, %p, %p)\n", debugstr_a(path), cluster_size, free, total);
4068
4069 if (!path)
4070 {
4072 return FALSE;
4073 }
4074
4075 if ((ret = GetDiskFreeSpaceExA(path, NULL, &bytes_total, &bytes_free)))
4076 {
4077 if (cluster_size) *cluster_size = 1;
4078 if (free) *free = bytes_free.QuadPart;
4079 if (total) *total = bytes_total.QuadPart;
4080 }
4081 return ret;
4082}
#define free
Definition: debug_ros.c:5
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define SetLastError(x)
Definition: compat.h:752
BOOL WINAPI GetDiskFreeSpaceExA(IN LPCSTR lpDirectoryName OPTIONAL, OUT PULARGE_INTEGER lpFreeBytesAvailableToCaller, OUT PULARGE_INTEGER lpTotalNumberOfBytes, OUT PULARGE_INTEGER lpTotalNumberOfFreeBytes)
Definition: disk.c:313
unsigned int BOOL
Definition: ntddk_ex.h:94
size_t total
__u8 cluster_size
Definition: mkdosfs.c:4
#define TRACE(s)
Definition: solgame.cpp:4
ULONGLONG QuadPart
Definition: ms-dtyp.idl:185
int ret

Referenced by test_GetDiskInfoA().

◆ GetUrlCacheConfigInfoA()

BOOL WINAPI GetUrlCacheConfigInfoA ( LPINTERNET_CACHE_CONFIG_INFOA  info,
LPDWORD  size,
DWORD  flags 
)

Definition at line 3857 of file urlcache.c.

3858{
3860
3861 TRACE("(%p, %p, %x)\n", info, size, flags);
3862
3863 if (!info)
3864 {
3866 return FALSE;
3867 }
3868
3869 infoW.dwStructSize = sizeof(infoW);
3871 return FALSE;
3872
3873 info->dwContainer = infoW.dwContainer;
3874 info->dwQuota = infoW.dwQuota;
3875 info->dwReserved4 = infoW.dwReserved4;
3876 info->fPerUser = infoW.fPerUser;
3877 info->dwSyncMode = infoW.dwSyncMode;
3878 info->dwNumCachePaths = infoW.dwNumCachePaths;
3879 info->dwNormalUsage = infoW.dwNormalUsage;
3880 info->dwExemptUsage = infoW.dwExemptUsage;
3881 info->u.s.dwCacheSize = infoW.u.s.dwCacheSize;
3882 WideCharToMultiByte(CP_ACP, 0, infoW.u.s.CachePath, -1, info->u.s.CachePath, MAX_PATH, NULL, NULL);
3883
3884 return TRUE;
3885}
#define TRUE
Definition: types.h:120
#define CP_ACP
Definition: compat.h:109
#define MAX_PATH
Definition: compat.h:34
#define WideCharToMultiByte
Definition: compat.h:111
void INTERNET_SetLastError(DWORD dwError)
Definition: internet.c:3837
BOOL WINAPI GetUrlCacheConfigInfoW(LPINTERNET_CACHE_CONFIG_INFOW info, LPDWORD size, DWORD flags)
Definition: urlcache.c:3816
GLsizeiptr size
Definition: glext.h:5919
GLbitfield flags
Definition: glext.h:7161
static const SecPkgInfoW infoW
Definition: kerberos.c:293

Referenced by test_GetUrlCacheConfigInfo().

◆ GetUrlCacheConfigInfoW()

BOOL WINAPI GetUrlCacheConfigInfoW ( LPINTERNET_CACHE_CONFIG_INFOW  info,
LPDWORD  size,
DWORD  flags 
)

Definition at line 3816 of file urlcache.c.

3817{
3819 DWORD error;
3820
3821 FIXME("(%p, %p, %x): semi-stub\n", info, size, flags);
3822
3823 if (!info || !(container = find_container(flags)))
3824 {
3826 return FALSE;
3827 }
3828
3830 if (error != ERROR_SUCCESS)
3831 {
3833 return FALSE;
3834 }
3835
3836 info->dwContainer = 0;
3837 info->dwQuota = FILE_SIZE(MAX_BLOCK_NO) / 1024;
3838 info->dwReserved4 = 0;
3839 info->fPerUser = TRUE;
3840 info->dwSyncMode = 0;
3841 info->dwNumCachePaths = 1;
3842 info->dwNormalUsage = 0;
3843 info->dwExemptUsage = 0;
3844 info->u.s.dwCacheSize = container->file_size / 1024;
3845 lstrcpynW(info->u.s.CachePath, container->path, MAX_PATH);
3846
3848
3849 TRACE("CachePath %s\n", debugstr_w(info->u.s.CachePath));
3850
3851 return TRUE;
3852}
#define ERROR_SUCCESS
Definition: deptool.c:10
#define lstrcpynW
Definition: compat.h:738
#define MAX_BLOCK_NO
Definition: urlcache.c:75
static void cache_container_close_index(cache_container *pContainer)
Definition: urlcache.c:682
static cache_container * find_container(DWORD flags)
Definition: urlcache.c:3780
#define FILE_SIZE(blocks)
Definition: urlcache.c:76
#define MIN_BLOCK_NO
Definition: urlcache.c:74
static DWORD cache_container_open_index(cache_container *container, DWORD blocks_no)
Definition: urlcache.c:596
unsigned long DWORD
Definition: ntddk_ex.h:95
#define debugstr_w
Definition: kernel32.h:32
#define error(str)
Definition: mkdosfs.c:1605

Referenced by GetUrlCacheConfigInfoA().

◆ IncrementUrlCacheHeaderData()

BOOL WINAPI IncrementUrlCacheHeaderData ( DWORD  index,
LPDWORD  data 
)

Definition at line 4096 of file urlcache.c.

4097{
4098 FIXME("(%u, %p)\n", index, data);
4099 return FALSE;
4100}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLuint index
Definition: glext.h:6031

◆ InternetGetSecurityInfoByURLA()

BOOL WINAPI InternetGetSecurityInfoByURLA ( LPSTR  lpszURL,
PCCERT_CHAIN_CONTEXT ppCertChain,
DWORD pdwSecureFlags 
)

Definition at line 4596 of file internet.c.

4597{
4598 WCHAR *url;
4599 BOOL res;
4600
4601 TRACE("(%s %p %p)\n", debugstr_a(lpszURL), ppCertChain, pdwSecureFlags);
4602
4603 url = heap_strdupAtoW(lpszURL);
4604 if(!url)
4605 return FALSE;
4606
4607 res = InternetGetSecurityInfoByURLW(url, ppCertChain, pdwSecureFlags);
4608 heap_free(url);
4609 return res;
4610}
static WCHAR * heap_strdupAtoW(const char *str)
Definition: appwiz.h:81
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
BOOL WINAPI InternetGetSecurityInfoByURLW(LPCWSTR lpszURL, PCCERT_CHAIN_CONTEXT *ppCertChain, DWORD *pdwSecureFlags)
Definition: internet.c:4615
GLuint res
Definition: glext.h:9613
static const WCHAR url[]
Definition: encode.c:1432
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ InternetGetSecurityInfoByURLW()

BOOL WINAPI InternetGetSecurityInfoByURLW ( LPCWSTR  lpszURL,
PCCERT_CHAIN_CONTEXT ppCertChain,
DWORD pdwSecureFlags 
)

Definition at line 4615 of file internet.c.

4616{
4617 URL_COMPONENTSW url = {sizeof(url)};
4619 BOOL res;
4620
4621 TRACE("(%s %p %p)\n", debugstr_w(lpszURL), ppCertChain, pdwSecureFlags);
4622
4623 if (!ppCertChain && !pdwSecureFlags) {
4625 return FALSE;
4626 }
4627
4628 url.dwHostNameLength = 1;
4629 res = InternetCrackUrlW(lpszURL, 0, 0, &url);
4630 if(!res || url.nScheme != INTERNET_SCHEME_HTTPS) {
4632 return FALSE;
4633 }
4634
4635 server = get_server(substr(url.lpszHostName, url.dwHostNameLength), url.nPort, TRUE, FALSE);
4636 if(!server) {
4638 return FALSE;
4639 }
4640
4641 if(server->cert_chain) {
4642 if(pdwSecureFlags)
4643 *pdwSecureFlags = server->security_flags & _SECURITY_ERROR_FLAGS_MASK;
4644
4645 if(ppCertChain && !(*ppCertChain = CertDuplicateCertificateChain(server->cert_chain)))
4646 res = FALSE;
4647 }else {
4649 res = FALSE;
4650 }
4651
4653 return res;
4654}
static nis_server * get_server(struct sockaddr_in *sin, char *host, nis_server *srv, eps, int maxep)
Definition: auth_time.c:143
PCCERT_CHAIN_CONTEXT WINAPI CertDuplicateCertificateChain(PCCERT_CHAIN_CONTEXT pChainContext)
Definition: chain.c:2948
void server_release(server_t *server)
Definition: http.c:154
BOOL WINAPI InternetCrackUrlW(const WCHAR *lpszUrl, DWORD dwUrlLength, DWORD dwFlags, URL_COMPONENTSW *lpUC)
Definition: internet.c:1625
static substr_t substr(const WCHAR *str, size_t len)
Definition: internet.h:203
#define _SECURITY_ERROR_FLAGS_MASK
Definition: internet.h:477
static rfbScreenInfoPtr server
Definition: vnc.c:74
#define INTERNET_SCHEME_HTTPS
Definition: winhttp.h:43
#define ERROR_INTERNET_ITEM_NOT_FOUND
Definition: wininet.h:2017

Referenced by InternetGetSecurityInfoByURLA().

◆ InternetQueryFortezzaStatus()

BOOL WINAPI InternetQueryFortezzaStatus ( DWORD a,
DWORD_PTR  b 
)

Definition at line 4704 of file internet.c.

4705{
4706 FIXME("(%p, %08lx) stub\n", a, b);
4707 return FALSE;
4708}
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

◆ IsUrlCacheEntryExpiredA()

BOOL WINAPI IsUrlCacheEntryExpiredA ( LPCSTR  url,
DWORD  dwFlags,
FILETIME pftLastModified 
)

Definition at line 3978 of file urlcache.c.

3979{
3981 struct hash_entry *pHashEntry;
3982 const entry_header *pEntry;
3983 const entry_url * pUrlEntry;
3984 cache_container *pContainer;
3985 BOOL expired;
3986
3987 TRACE("(%s, %08x, %p)\n", debugstr_a(url), dwFlags, pftLastModified);
3988
3989 if (!url || !pftLastModified)
3990 return TRUE;
3991 if (dwFlags)
3992 FIXME("unknown flags 0x%08x\n", dwFlags);
3993
3994 /* Any error implies that the URL is expired, i.e. not in the cache */
3995 if (cache_containers_find(url, &pContainer))
3996 {
3997 memset(pftLastModified, 0, sizeof(*pftLastModified));
3998 return TRUE;
3999 }
4000
4002 {
4003 memset(pftLastModified, 0, sizeof(*pftLastModified));
4004 return TRUE;
4005 }
4006
4007 if (!(pHeader = cache_container_lock_index(pContainer)))
4008 {
4009 memset(pftLastModified, 0, sizeof(*pftLastModified));
4010 return TRUE;
4011 }
4012
4013 if (!urlcache_find_hash_entry(pHeader, url, &pHashEntry))
4014 {
4016 memset(pftLastModified, 0, sizeof(*pftLastModified));
4017 TRACE("entry %s not found!\n", url);
4018 return TRUE;
4019 }
4020
4021 pEntry = (const entry_header*)((LPBYTE)pHeader + pHashEntry->offset);
4022 if (pEntry->signature != URL_SIGNATURE)
4023 {
4024 FIXME("Trying to retrieve entry of unknown format %s\n", debugstr_an((LPCSTR)&pEntry->signature, sizeof(DWORD)));
4026 memset(pftLastModified, 0, sizeof(*pftLastModified));
4027 return TRUE;
4028 }
4029
4030 pUrlEntry = (const entry_url *)pEntry;
4031 expired = urlcache_entry_is_expired(pUrlEntry, pftLastModified);
4032
4034
4035 return expired;
4036}
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:55
static BOOL urlcache_entry_is_expired(const entry_url *pUrlEntry, FILETIME *pftLastModified)
Definition: urlcache.c:3952
#define URL_SIGNATURE
Definition: urlcache.c:95
static BOOL cache_container_unlock_index(cache_container *pContainer, urlcache_header *pHeader)
Definition: urlcache.c:975
static urlcache_header * cache_container_lock_index(cache_container *pContainer)
Definition: urlcache.c:916
static BOOL urlcache_find_hash_entry(const urlcache_header *pHeader, LPCSTR lpszUrl, struct hash_entry **ppHashEntry)
Definition: urlcache.c:1518
static DWORD cache_containers_find(const char *url, cache_container **ret)
Definition: urlcache.c:835
PLIST_ENTRY pEntry
Definition: fxioqueue.cpp:4484
FxContextHeader * pHeader
Definition: handleapi.cpp:604
#define memset(x, y, z)
Definition: compat.h:39
Definition: urlcache.c:148
DWORD offset
Definition: urlcache.c:150
unsigned char * LPBYTE
Definition: typedefs.h:53
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176
const char * LPCSTR
Definition: xmlstorage.h:183

Referenced by IsUrlCacheEntryExpiredW(), and test_IsUrlCacheEntryExpiredA().

◆ IsUrlCacheEntryExpiredW()

BOOL WINAPI IsUrlCacheEntryExpiredW ( LPCWSTR  url,
DWORD  dwFlags,
FILETIME pftLastModified 
)

Definition at line 4046 of file urlcache.c.

4047{
4048 char *encoded_url;
4049 BOOL ret;
4050
4051 if(!urlcache_encode_url_alloc(url, &encoded_url))
4052 return FALSE;
4053
4054 ret = IsUrlCacheEntryExpiredA(encoded_url, dwFlags, pftLastModified);
4055 heap_free(encoded_url);
4056 return ret;
4057}
static BOOL urlcache_encode_url_alloc(const WCHAR *url, char **encoded_url)
Definition: urlcache.c:1955
BOOL WINAPI IsUrlCacheEntryExpiredA(LPCSTR url, DWORD dwFlags, FILETIME *pftLastModified)
Definition: urlcache.c:3978

◆ SetUrlCacheConfigInfoA()

BOOL WINAPI SetUrlCacheConfigInfoA ( LPINTERNET_CACHE_CONFIG_INFOA  lpCacheConfigInfo,
DWORD  dwFieldControl 
)

Definition at line 3923 of file urlcache.c.

3924{
3925 FIXME("(%p, 0x%08x) stub\n", lpCacheConfigInfo, dwFieldControl);
3926 return TRUE;
3927}

◆ SetUrlCacheConfigInfoW()

BOOL WINAPI SetUrlCacheConfigInfoW ( LPINTERNET_CACHE_CONFIG_INFOW  lpCacheConfigInfo,
DWORD  dwFieldControl 
)

Definition at line 3929 of file urlcache.c.

3930{
3931 FIXME("(%p, 0x%08x) stub\n", lpCacheConfigInfo, dwFieldControl);
3932 return TRUE;
3933}