ReactOS  0.4.14-dev-1034-g1e60116
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 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.

◆ GetUrlCacheConfigInfo

#define GetUrlCacheConfigInfo   WINELIB_NAME_AW(GetUrlCacheConfigInfo)

Definition at line 117 of file winineti.h.

◆ InternetGetSecurityInfoByURL

#define InternetGetSecurityInfoByURL   WINELIB_NAME_AW(InternetGetSecurityInfoByURL)

Definition at line 128 of file winineti.h.

◆ IsUrlCacheEntryExpired

#define IsUrlCacheEntryExpired   WINELIB_NAME_AW(IsUrlCacheEntryExpired)

Definition at line 122 of file winineti.h.

◆ SetUrlCacheConfigInfo

#define SetUrlCacheConfigInfo   WINELIB_NAME_AW(SetUrlCacheConfigInfo)

Definition at line 125 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.

Function Documentation

◆ DeleteIE3Cache()

DWORD WINAPI DeleteIE3Cache ( HWND  ,
HINSTANCE  ,
LPSTR  ,
int   
)

Definition at line 3958 of file urlcache.c.

3959 {
3960  FIXME("(%p, %p, %s, %d)\n", hWnd, hInst, debugstr_a(lpszCmdLine), nCmdShow);
3961  return 0;
3962 }
HWND hWnd
Definition: settings.c:17
#define FIXME(fmt,...)
Definition: debug.h:110
#define debugstr_a
Definition: kernel32.h:31
HINSTANCE hInst
Definition: dxdiag.c:13

◆ GetDiskInfoA()

BOOL WINAPI GetDiskInfoA ( PCSTR  ,
PDWORD  ,
PDWORDLONG  ,
PDWORDLONG   
)

Definition at line 4074 of file urlcache.c.

4075 {
4076  BOOL ret;
4077  ULARGE_INTEGER bytes_free, bytes_total;
4078 
4079  TRACE("(%s, %p, %p, %p)\n", debugstr_a(path), cluster_size, free, total);
4080 
4081  if (!path)
4082  {
4084  return FALSE;
4085  }
4086 
4087  if ((ret = GetDiskFreeSpaceExA(path, NULL, &bytes_total, &bytes_free)))
4088  {
4089  if (cluster_size) *cluster_size = 1;
4090  if (free) *free = bytes_free.QuadPart;
4091  if (total) *total = bytes_total.QuadPart;
4092  }
4093  return ret;
4094 }
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
#define free
Definition: debug_ros.c:5
ULONGLONG QuadPart
Definition: ms-dtyp.idl:185
unsigned int BOOL
Definition: ntddk_ex.h:94
__u8 cluster_size
Definition: mkdosfs.c:362
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define debugstr_a
Definition: kernel32.h:31
#define SetLastError(x)
Definition: compat.h:417
int ret
BOOL WINAPI GetDiskFreeSpaceExA(IN LPCSTR lpDirectoryName OPTIONAL, OUT PULARGE_INTEGER lpFreeBytesAvailableToCaller, OUT PULARGE_INTEGER lpTotalNumberOfBytes, OUT PULARGE_INTEGER lpTotalNumberOfFreeBytes)
Definition: disk.c:313

Referenced by test_GetDiskInfoA().

◆ GetUrlCacheConfigInfoA()

BOOL WINAPI GetUrlCacheConfigInfoA ( LPINTERNET_CACHE_CONFIG_INFOA  ,
LPDWORD  ,
DWORD   
)

Definition at line 3869 of file urlcache.c.

3870 {
3872 
3873  TRACE("(%p, %p, %x)\n", info, size, flags);
3874 
3875  if (!info)
3876  {
3878  return FALSE;
3879  }
3880 
3881  infoW.dwStructSize = sizeof(infoW);
3883  return FALSE;
3884 
3885  info->dwContainer = infoW.dwContainer;
3886  info->dwQuota = infoW.dwQuota;
3887  info->dwReserved4 = infoW.dwReserved4;
3888  info->fPerUser = infoW.fPerUser;
3889  info->dwSyncMode = infoW.dwSyncMode;
3890  info->dwNumCachePaths = infoW.dwNumCachePaths;
3891  info->dwNormalUsage = infoW.dwNormalUsage;
3892  info->dwExemptUsage = infoW.dwExemptUsage;
3893  info->u.s.dwCacheSize = infoW.u.s.dwCacheSize;
3894  WideCharToMultiByte(CP_ACP, 0, infoW.u.s.CachePath, -1, info->u.s.CachePath, MAX_PATH, NULL, NULL);
3895 
3896  return TRUE;
3897 }
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
#define TRUE
Definition: types.h:120
void INTERNET_SetLastError(DWORD dwError)
Definition: internet.c:3720
#define WideCharToMultiByte
Definition: compat.h:101
#define CP_ACP
Definition: compat.h:99
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
GLsizeiptr size
Definition: glext.h:5919
static const SecPkgInfoW infoW
Definition: kerberos.c:293
#define MAX_PATH
Definition: compat.h:26
GLbitfield flags
Definition: glext.h:7161
BOOL WINAPI GetUrlCacheConfigInfoW(LPINTERNET_CACHE_CONFIG_INFOW info, LPDWORD size, DWORD flags)
Definition: urlcache.c:3828

Referenced by test_GetUrlCacheConfigInfo().

◆ GetUrlCacheConfigInfoW()

BOOL WINAPI GetUrlCacheConfigInfoW ( LPINTERNET_CACHE_CONFIG_INFOW  ,
LPDWORD  ,
DWORD   
)

Definition at line 3828 of file urlcache.c.

3829 {
3831  DWORD error;
3832 
3833  FIXME("(%p, %p, %x): semi-stub\n", info, size, flags);
3834 
3835  if (!info || !(container = find_container(flags)))
3836  {
3838  return FALSE;
3839  }
3840 
3842  if (error != ERROR_SUCCESS)
3843  {
3845  return FALSE;
3846  }
3847 
3848  info->dwContainer = 0;
3849  info->dwQuota = FILE_SIZE(MAX_BLOCK_NO) / 1024;
3850  info->dwReserved4 = 0;
3851  info->fPerUser = TRUE;
3852  info->dwSyncMode = 0;
3853  info->dwNumCachePaths = 1;
3854  info->dwNormalUsage = 0;
3855  info->dwExemptUsage = 0;
3856  info->u.s.dwCacheSize = container->file_size / 1024;
3857  lstrcpynW(info->u.s.CachePath, container->path, MAX_PATH);
3858 
3860 
3861  TRACE("CachePath %s\n", debugstr_w(info->u.s.CachePath));
3862 
3863  return TRUE;
3864 }
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
static cache_container * find_container(DWORD flags)
Definition: urlcache.c:3792
#define TRUE
Definition: types.h:120
#define ERROR_SUCCESS
Definition: deptool.c:10
void INTERNET_SetLastError(DWORD dwError)
Definition: internet.c:3720
#define error(str)
Definition: mkdosfs.c:1605
#define lstrcpynW
Definition: compat.h:405
struct container container
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
static void cache_container_close_index(cache_container *pContainer)
Definition: urlcache.c:688
#define TRACE(s)
Definition: solgame.cpp:4
GLsizeiptr size
Definition: glext.h:5919
#define MAX_PATH
Definition: compat.h:26
#define FILE_SIZE(blocks)
Definition: urlcache.c:72
unsigned long DWORD
Definition: ntddk_ex.h:95
GLbitfield flags
Definition: glext.h:7161
#define MAX_BLOCK_NO
Definition: urlcache.c:71
static DWORD cache_container_open_index(cache_container *container, DWORD blocks_no)
Definition: urlcache.c:600
#define MIN_BLOCK_NO
Definition: urlcache.c:70

Referenced by GetUrlCacheConfigInfoA().

◆ IncrementUrlCacheHeaderData()

BOOL WINAPI IncrementUrlCacheHeaderData ( DWORD  ,
LPDWORD   
)

Definition at line 4108 of file urlcache.c.

4109 {
4110  FIXME("(%u, %p)\n", index, data);
4111  return FALSE;
4112 }
#define FIXME(fmt,...)
Definition: debug.h:110
GLuint index
Definition: glext.h:6031
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950

◆ InternetGetSecurityInfoByURLA()

BOOL WINAPI InternetGetSecurityInfoByURLA ( LPSTR  ,
PCCERT_CHAIN_CONTEXT ,
DWORD  
)

Definition at line 4479 of file internet.c.

4480 {
4481  WCHAR *url;
4482  BOOL res;
4483 
4484  TRACE("(%s %p %p)\n", debugstr_a(lpszURL), ppCertChain, pdwSecureFlags);
4485 
4486  url = heap_strdupAtoW(lpszURL);
4487  if(!url)
4488  return FALSE;
4489 
4490  res = InternetGetSecurityInfoByURLW(url, ppCertChain, pdwSecureFlags);
4491  heap_free(url);
4492  return res;
4493 }
unsigned int BOOL
Definition: ntddk_ex.h:94
static WCHAR * heap_strdupAtoW(const char *str)
Definition: appwiz.h:80
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define debugstr_a
Definition: kernel32.h:31
static const WCHAR url[]
Definition: encode.c:1432
GLuint res
Definition: glext.h:9613
BOOL WINAPI InternetGetSecurityInfoByURLW(LPCWSTR lpszURL, PCCERT_CHAIN_CONTEXT *ppCertChain, DWORD *pdwSecureFlags)
Definition: internet.c:4498
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ InternetGetSecurityInfoByURLW()

BOOL WINAPI InternetGetSecurityInfoByURLW ( LPCWSTR  ,
PCCERT_CHAIN_CONTEXT ,
DWORD  
)

Definition at line 4498 of file internet.c.

4499 {
4500  URL_COMPONENTSW url = {sizeof(url)};
4501  server_t *server;
4502  BOOL res;
4503 
4504  TRACE("(%s %p %p)\n", debugstr_w(lpszURL), ppCertChain, pdwSecureFlags);
4505 
4506  if (!ppCertChain && !pdwSecureFlags) {
4508  return FALSE;
4509  }
4510 
4511  url.dwHostNameLength = 1;
4512  res = InternetCrackUrlW(lpszURL, 0, 0, &url);
4513  if(!res || url.nScheme != INTERNET_SCHEME_HTTPS) {
4515  return FALSE;
4516  }
4517 
4518  server = get_server(substr(url.lpszHostName, url.dwHostNameLength), url.nPort, TRUE, FALSE);
4519  if(!server) {
4521  return FALSE;
4522  }
4523 
4524  if(server->cert_chain) {
4525  if(pdwSecureFlags)
4526  *pdwSecureFlags = server->security_flags & _SECURITY_ERROR_FLAGS_MASK;
4527 
4528  if(ppCertChain && !(*ppCertChain = CertDuplicateCertificateChain(server->cert_chain)))
4529  res = FALSE;
4530  }else {
4532  res = FALSE;
4533  }
4534 
4536  return res;
4537 }
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
#define TRUE
Definition: types.h:120
static rfbScreenInfoPtr server
Definition: vnc.c:74
PCCERT_CHAIN_CONTEXT WINAPI CertDuplicateCertificateChain(PCCERT_CHAIN_CONTEXT pChainContext)
Definition: chain.c:2948
#define ERROR_INTERNET_ITEM_NOT_FOUND
Definition: wininet.h:2017
void server_release(server_t *server)
Definition: http.c:226
unsigned int BOOL
Definition: ntddk_ex.h:94
#define debugstr_w
Definition: kernel32.h:32
#define _SECURITY_ERROR_FLAGS_MASK
Definition: internet.h:478
#define TRACE(s)
Definition: solgame.cpp:4
static const WCHAR url[]
Definition: encode.c:1432
#define SetLastError(x)
Definition: compat.h:417
static nis_server * get_server(struct sockaddr_in *sin, char *host, nis_server *srv, eps, int maxep)
Definition: auth_time.c:143
BOOL WINAPI InternetCrackUrlW(const WCHAR *lpszUrl, DWORD dwUrlLength, DWORD dwFlags, URL_COMPONENTSW *lpUC)
Definition: internet.c:1644
GLuint res
Definition: glext.h:9613
static substr_t substr(const WCHAR *str, size_t len)
Definition: internet.h:204

Referenced by InternetGetSecurityInfoByURLA().

◆ InternetQueryFortezzaStatus()

BOOL WINAPI InternetQueryFortezzaStatus ( DWORD ,
DWORD_PTR   
)

Definition at line 4587 of file internet.c.

4588 {
4589  FIXME("(%p, %08lx) stub\n", a, b);
4590  return FALSE;
4591 }
#define FIXME(fmt,...)
Definition: debug.h:110
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

◆ IsUrlCacheEntryExpiredA()

BOOL WINAPI IsUrlCacheEntryExpiredA ( LPCSTR  ,
DWORD  ,
FILETIME  
)

Definition at line 3990 of file urlcache.c.

3991 {
3992  urlcache_header *pHeader;
3993  struct hash_entry *pHashEntry;
3994  const entry_header *pEntry;
3995  const entry_url * pUrlEntry;
3996  cache_container *pContainer;
3997  BOOL expired;
3998 
3999  TRACE("(%s, %08x, %p)\n", debugstr_a(url), dwFlags, pftLastModified);
4000 
4001  if (!url || !pftLastModified)
4002  return TRUE;
4003  if (dwFlags)
4004  FIXME("unknown flags 0x%08x\n", dwFlags);
4005 
4006  /* Any error implies that the URL is expired, i.e. not in the cache */
4007  if (cache_containers_find(url, &pContainer))
4008  {
4009  memset(pftLastModified, 0, sizeof(*pftLastModified));
4010  return TRUE;
4011  }
4012 
4013  if (cache_container_open_index(pContainer, MIN_BLOCK_NO))
4014  {
4015  memset(pftLastModified, 0, sizeof(*pftLastModified));
4016  return TRUE;
4017  }
4018 
4019  if (!(pHeader = cache_container_lock_index(pContainer)))
4020  {
4021  memset(pftLastModified, 0, sizeof(*pftLastModified));
4022  return TRUE;
4023  }
4024 
4025  if (!urlcache_find_hash_entry(pHeader, url, &pHashEntry))
4026  {
4027  cache_container_unlock_index(pContainer, pHeader);
4028  memset(pftLastModified, 0, sizeof(*pftLastModified));
4029  TRACE("entry %s not found!\n", url);
4030  return TRUE;
4031  }
4032 
4033  pEntry = (const entry_header*)((LPBYTE)pHeader + pHashEntry->offset);
4034  if (pEntry->signature != URL_SIGNATURE)
4035  {
4036  cache_container_unlock_index(pContainer, pHeader);
4037  memset(pftLastModified, 0, sizeof(*pftLastModified));
4038  FIXME("Trying to retrieve entry of unknown format %s\n", debugstr_an((LPCSTR)&pEntry->signature, sizeof(DWORD)));
4039  return TRUE;
4040  }
4041 
4042  pUrlEntry = (const entry_url *)pEntry;
4043  expired = urlcache_entry_is_expired(pUrlEntry, pftLastModified);
4044 
4045  cache_container_unlock_index(pContainer, pHeader);
4046 
4047  return expired;
4048 }
#define TRUE
Definition: types.h:120
static BOOL urlcache_entry_is_expired(const entry_url *pUrlEntry, FILETIME *pftLastModified)
Definition: urlcache.c:3964
static BOOL cache_container_unlock_index(cache_container *pContainer, urlcache_header *pHeader)
Definition: urlcache.c:985
Definition: urlcache.c:143
unsigned char * LPBYTE
Definition: typedefs.h:53
unsigned int BOOL
Definition: ntddk_ex.h:94
#define FIXME(fmt,...)
Definition: debug.h:110
#define URL_SIGNATURE
Definition: urlcache.c:91
DWORD offset
Definition: urlcache.c:146
const char * LPCSTR
Definition: xmlstorage.h:183
#define TRACE(s)
Definition: solgame.cpp:4
#define debugstr_a
Definition: kernel32.h:31
static const WCHAR url[]
Definition: encode.c:1432
unsigned long DWORD
Definition: ntddk_ex.h:95
static __inline const char * debugstr_an(const char *s, int n)
Definition: compat.h:47
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
static DWORD cache_container_open_index(cache_container *container, DWORD blocks_no)
Definition: urlcache.c:600
static urlcache_header * cache_container_lock_index(cache_container *pContainer)
Definition: urlcache.c:926
DWORD signature
Definition: urlcache.c:102
#define MIN_BLOCK_NO
Definition: urlcache.c:70
#define memset(x, y, z)
Definition: compat.h:39
static BOOL urlcache_find_hash_entry(const urlcache_header *pHeader, LPCSTR lpszUrl, struct hash_entry **ppHashEntry)
Definition: urlcache.c:1528
static DWORD cache_containers_find(const char *url, cache_container **ret)
Definition: urlcache.c:845

Referenced by IsUrlCacheEntryExpiredW(), and test_IsUrlCacheEntryExpiredA().

◆ IsUrlCacheEntryExpiredW()

BOOL WINAPI IsUrlCacheEntryExpiredW ( LPCWSTR  ,
DWORD  ,
FILETIME  
)

Definition at line 4058 of file urlcache.c.

4059 {
4060  char *encoded_url;
4061  BOOL ret;
4062 
4063  if(!urlcache_encode_url_alloc(url, &encoded_url))
4064  return FALSE;
4065 
4066  ret = IsUrlCacheEntryExpiredA(encoded_url, dwFlags, pftLastModified);
4067  heap_free(encoded_url);
4068  return ret;
4069 }
unsigned int BOOL
Definition: ntddk_ex.h:94
static const WCHAR url[]
Definition: encode.c:1432
static BOOL urlcache_encode_url_alloc(const WCHAR *url, char **encoded_url)
Definition: urlcache.c:1965
int ret
BOOL WINAPI IsUrlCacheEntryExpiredA(LPCSTR url, DWORD dwFlags, FILETIME *pftLastModified)
Definition: urlcache.c:3990
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ SetUrlCacheConfigInfoA()

BOOL WINAPI SetUrlCacheConfigInfoA ( LPINTERNET_CACHE_CONFIG_INFOA  ,
DWORD   
)

Definition at line 3935 of file urlcache.c.

3936 {
3937  FIXME("(%p, 0x%08x) stub\n", lpCacheConfigInfo, dwFieldControl);
3938  return TRUE;
3939 }
#define TRUE
Definition: types.h:120
#define FIXME(fmt,...)
Definition: debug.h:110

◆ SetUrlCacheConfigInfoW()

BOOL WINAPI SetUrlCacheConfigInfoW ( LPINTERNET_CACHE_CONFIG_INFOW  ,
DWORD   
)

Definition at line 3941 of file urlcache.c.

3942 {
3943  FIXME("(%p, 0x%08x) stub\n", lpCacheConfigInfo, dwFieldControl);
3944  return TRUE;
3945 }
#define TRUE
Definition: types.h:120
#define FIXME(fmt,...)
Definition: debug.h:110