ReactOS  0.4.14-dev-342-gdc047f9
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 3870 of file urlcache.c.

3871 {
3872  FIXME("(%p, %p, %s, %d)\n", hWnd, hInst, debugstr_a(lpszCmdLine), nCmdShow);
3873  return 0;
3874 }
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 3986 of file urlcache.c.

3987 {
3988  BOOL ret;
3989  ULARGE_INTEGER bytes_free, bytes_total;
3990 
3991  TRACE("(%s, %p, %p, %p)\n", debugstr_a(path), cluster_size, free, total);
3992 
3993  if (!path)
3994  {
3996  return FALSE;
3997  }
3998 
3999  if ((ret = GetDiskFreeSpaceExA(path, NULL, &bytes_total, &bytes_free)))
4000  {
4001  if (cluster_size) *cluster_size = 1;
4002  if (free) *free = bytes_free.QuadPart;
4003  if (total) *total = bytes_total.QuadPart;
4004  }
4005  return ret;
4006 }
#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
Definition: services.c:325
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 3804 of file urlcache.c.

3805 {
3806  FIXME("(%p, %p, %x)\n", CacheInfo, size, bitmask);
3808  return FALSE;
3809 }
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
void INTERNET_SetLastError(DWORD dwError)
Definition: internet.c:3723
#define FIXME(fmt,...)
Definition: debug.h:110
GLsizeiptr size
Definition: glext.h:5919

◆ GetUrlCacheConfigInfoW()

BOOL WINAPI GetUrlCacheConfigInfoW ( LPINTERNET_CACHE_CONFIG_INFOW  ,
LPDWORD  ,
DWORD   
)

Definition at line 3794 of file urlcache.c.

3795 {
3796  FIXME("(%p, %p, %x)\n", CacheInfo, size, bitmask);
3798  return FALSE;
3799 }
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
void INTERNET_SetLastError(DWORD dwError)
Definition: internet.c:3723
#define FIXME(fmt,...)
Definition: debug.h:110
GLsizeiptr size
Definition: glext.h:5919

◆ IncrementUrlCacheHeaderData()

BOOL WINAPI IncrementUrlCacheHeaderData ( DWORD  ,
LPDWORD   
)

Definition at line 4020 of file urlcache.c.

4021 {
4022  FIXME("(%u, %p)\n", index, data);
4023  return FALSE;
4024 }
#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 4482 of file internet.c.

4483 {
4484  WCHAR *url;
4485  BOOL res;
4486 
4487  TRACE("(%s %p %p)\n", debugstr_a(lpszURL), ppCertChain, pdwSecureFlags);
4488 
4489  url = heap_strdupAtoW(lpszURL);
4490  if(!url)
4491  return FALSE;
4492 
4493  res = InternetGetSecurityInfoByURLW(url, ppCertChain, pdwSecureFlags);
4494  heap_free(url);
4495  return res;
4496 }
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:4501
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ InternetGetSecurityInfoByURLW()

BOOL WINAPI InternetGetSecurityInfoByURLW ( LPCWSTR  ,
PCCERT_CHAIN_CONTEXT ,
DWORD  
)

Definition at line 4501 of file internet.c.

4502 {
4503  URL_COMPONENTSW url = {sizeof(url)};
4504  server_t *server;
4505  BOOL res;
4506 
4507  TRACE("(%s %p %p)\n", debugstr_w(lpszURL), ppCertChain, pdwSecureFlags);
4508 
4509  if (!ppCertChain && !pdwSecureFlags) {
4511  return FALSE;
4512  }
4513 
4514  url.dwHostNameLength = 1;
4515  res = InternetCrackUrlW(lpszURL, 0, 0, &url);
4516  if(!res || url.nScheme != INTERNET_SCHEME_HTTPS) {
4518  return FALSE;
4519  }
4520 
4521  server = get_server(substr(url.lpszHostName, url.dwHostNameLength), url.nPort, TRUE, FALSE);
4522  if(!server) {
4524  return FALSE;
4525  }
4526 
4527  if(server->cert_chain) {
4528  if(pdwSecureFlags)
4529  *pdwSecureFlags = server->security_flags & _SECURITY_ERROR_FLAGS_MASK;
4530 
4531  if(ppCertChain && !(*ppCertChain = CertDuplicateCertificateChain(server->cert_chain)))
4532  res = FALSE;
4533  }else {
4535  res = FALSE;
4536  }
4537 
4539  return res;
4540 }
#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:229
unsigned int BOOL
Definition: ntddk_ex.h:94
#define debugstr_w
Definition: kernel32.h:32
#define _SECURITY_ERROR_FLAGS_MASK
Definition: internet.h:477
#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:1645
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 4590 of file internet.c.

4591 {
4592  FIXME("(%p, %08lx) stub\n", a, b);
4593  return FALSE;
4594 }
#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 3902 of file urlcache.c.

3903 {
3904  urlcache_header *pHeader;
3905  struct hash_entry *pHashEntry;
3906  const entry_header *pEntry;
3907  const entry_url * pUrlEntry;
3908  cache_container *pContainer;
3909  BOOL expired;
3910 
3911  TRACE("(%s, %08x, %p)\n", debugstr_a(url), dwFlags, pftLastModified);
3912 
3913  if (!url || !pftLastModified)
3914  return TRUE;
3915  if (dwFlags)
3916  FIXME("unknown flags 0x%08x\n", dwFlags);
3917 
3918  /* Any error implies that the URL is expired, i.e. not in the cache */
3919  if (cache_containers_find(url, &pContainer))
3920  {
3921  memset(pftLastModified, 0, sizeof(*pftLastModified));
3922  return TRUE;
3923  }
3924 
3925  if (cache_container_open_index(pContainer, MIN_BLOCK_NO))
3926  {
3927  memset(pftLastModified, 0, sizeof(*pftLastModified));
3928  return TRUE;
3929  }
3930 
3931  if (!(pHeader = cache_container_lock_index(pContainer)))
3932  {
3933  memset(pftLastModified, 0, sizeof(*pftLastModified));
3934  return TRUE;
3935  }
3936 
3937  if (!urlcache_find_hash_entry(pHeader, url, &pHashEntry))
3938  {
3939  cache_container_unlock_index(pContainer, pHeader);
3940  memset(pftLastModified, 0, sizeof(*pftLastModified));
3941  TRACE("entry %s not found!\n", url);
3942  return TRUE;
3943  }
3944 
3945  pEntry = (const entry_header*)((LPBYTE)pHeader + pHashEntry->offset);
3946  if (pEntry->signature != URL_SIGNATURE)
3947  {
3948  cache_container_unlock_index(pContainer, pHeader);
3949  memset(pftLastModified, 0, sizeof(*pftLastModified));
3950  FIXME("Trying to retrieve entry of unknown format %s\n", debugstr_an((LPCSTR)&pEntry->signature, sizeof(DWORD)));
3951  return TRUE;
3952  }
3953 
3954  pUrlEntry = (const entry_url *)pEntry;
3955  expired = urlcache_entry_is_expired(pUrlEntry, pftLastModified);
3956 
3957  cache_container_unlock_index(pContainer, pHeader);
3958 
3959  return expired;
3960 }
#define TRUE
Definition: types.h:120
static BOOL urlcache_entry_is_expired(const entry_url *pUrlEntry, FILETIME *pftLastModified)
Definition: urlcache.c:3876
static BOOL cache_container_unlock_index(cache_container *pContainer, urlcache_header *pHeader)
Definition: urlcache.c:984
Definition: urlcache.c:142
unsigned char * LPBYTE
Definition: typedefs.h:52
unsigned int BOOL
Definition: ntddk_ex.h:94
#define FIXME(fmt,...)
Definition: debug.h:110
#define URL_SIGNATURE
Definition: urlcache.c:90
DWORD offset
Definition: urlcache.c:145
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:599
static urlcache_header * cache_container_lock_index(cache_container *pContainer)
Definition: urlcache.c:925
DWORD signature
Definition: urlcache.c:101
#define MIN_BLOCK_NO
Definition: urlcache.c:69
#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:1527
static DWORD cache_containers_find(const char *url, cache_container **ret)
Definition: urlcache.c:844

Referenced by IsUrlCacheEntryExpiredW(), and test_IsUrlCacheEntryExpiredA().

◆ IsUrlCacheEntryExpiredW()

BOOL WINAPI IsUrlCacheEntryExpiredW ( LPCWSTR  ,
DWORD  ,
FILETIME  
)

Definition at line 3970 of file urlcache.c.

3971 {
3972  char *encoded_url;
3973  BOOL ret;
3974 
3975  if(!urlcache_encode_url_alloc(url, &encoded_url))
3976  return FALSE;
3977 
3978  ret = IsUrlCacheEntryExpiredA(encoded_url, dwFlags, pftLastModified);
3979  heap_free(encoded_url);
3980  return ret;
3981 }
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:1964
int ret
BOOL WINAPI IsUrlCacheEntryExpiredA(LPCSTR url, DWORD dwFlags, FILETIME *pftLastModified)
Definition: urlcache.c:3902
_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 3847 of file urlcache.c.

3848 {
3849  FIXME("(%p, 0x%08x) stub\n", lpCacheConfigInfo, dwFieldControl);
3850  return TRUE;
3851 }
#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 3853 of file urlcache.c.

3854 {
3855  FIXME("(%p, 0x%08x) stub\n", lpCacheConfigInfo, dwFieldControl);
3856  return TRUE;
3857 }
#define TRUE
Definition: types.h:120
#define FIXME(fmt,...)
Definition: debug.h:110