diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:49:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:49:04 +0000 |
commit | 16f504a9dca3fe3b70568f67b7d41241ae485288 (patch) | |
tree | c60f36ada0496ba928b7161059ba5ab1ab224f9d /src/VBox/Devices/Graphics/shaderlib/wine/include/winineti.h | |
parent | Initial commit. (diff) | |
download | virtualbox-upstream.tar.xz virtualbox-upstream.zip |
Adding upstream version 7.0.6-dfsg.upstream/7.0.6-dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/VBox/Devices/Graphics/shaderlib/wine/include/winineti.h')
-rw-r--r-- | src/VBox/Devices/Graphics/shaderlib/wine/include/winineti.h | 143 |
1 files changed, 143 insertions, 0 deletions
diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/winineti.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/winineti.h new file mode 100644 index 00000000..1aac46de --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/winineti.h @@ -0,0 +1,143 @@ +/* + * Copyright (C) 2007 Francois Gouget + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle elects to use only + * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where + * a choice of LGPL license versions is made available with the language indicating + * that LGPLv2 or any later version may be used, or where a choice of which version + * of the LGPL is applied is otherwise unspecified. + */ + +#ifndef _WINE_WININETI_H_ +#define _WINE_WININETI_H_ + +/* FIXME: #include <iedial.h> */ +#include <schannel.h> +#include <sspi.h> + +typedef struct _INTERNET_CACHE_CONFIG_PATH_ENTRYA +{ + CHAR CachePath[MAX_PATH]; + DWORD dwCacheSize; +} INTERNET_CACHE_CONFIG_PATH_ENTRYA, *LPINTERNET_CACHE_CONFIG_PATH_ENTRYA; + +typedef struct _INTERNET_CACHE_CONFIG_PATH_ENTRYW +{ + WCHAR CachePath[MAX_PATH]; + DWORD dwCacheSize; +} INTERNET_CACHE_CONFIG_PATH_ENTRYW, *LPINTERNET_CACHE_CONFIG_PATH_ENTRYW; + +DECL_WINELIB_TYPE_AW(INTERNET_CACHE_CONFIG_PATH_ENTRY) +DECL_WINELIB_TYPE_AW(LPINTERNET_CACHE_CONFIG_PATH_ENTRY) + +typedef struct _INTERNET_CACHE_CONFIG_INFOA +{ + DWORD dwStructSize; + DWORD dwContainer; + DWORD dwQuota; + DWORD dwReserved4; + BOOL fPerUser; + DWORD dwSyncMode; + DWORD dwNumCachePaths; + __C89_NAMELESS union + { + __C89_NAMELESS struct + { + CHAR CachePath[MAX_PATH]; + DWORD dwCacheSize; + } __C89_NAMELESSSTRUCTNAME; + INTERNET_CACHE_CONFIG_PATH_ENTRYA CachePaths[ANYSIZE_ARRAY]; + } __C89_NAMELESSUNIONNAME; + DWORD dwNormalUsage; + DWORD dwExemptUsage; +} INTERNET_CACHE_CONFIG_INFOA, *LPINTERNET_CACHE_CONFIG_INFOA; + +typedef struct _INTERNET_CACHE_CONFIG_INFOW +{ + DWORD dwStructSize; + DWORD dwContainer; + DWORD dwQuota; + DWORD dwReserved4; + BOOL fPerUser; + DWORD dwSyncMode; + DWORD dwNumCachePaths; + __C89_NAMELESS union + { + __C89_NAMELESS struct + { + WCHAR CachePath[MAX_PATH]; + DWORD dwCacheSize; + } __C89_NAMELESSSTRUCTNAME; + INTERNET_CACHE_CONFIG_PATH_ENTRYW CachePaths[ANYSIZE_ARRAY]; + } __C89_NAMELESSUNIONNAME; + DWORD dwNormalUsage; + DWORD dwExemptUsage; +} INTERNET_CACHE_CONFIG_INFOW, *LPINTERNET_CACHE_CONFIG_INFOW; + +DECL_WINELIB_TYPE_AW(INTERNET_CACHE_CONFIG_INFO) +DECL_WINELIB_TYPE_AW(LPINTERNET_CACHE_CONFIG_INFO) + +typedef enum { + 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 +} WININET_SYNC_MODE; + +/* Flags for GetUrlCacheConfigInfoA/W and SetUrlCacheConfigInfoA/W */ +#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 + +#ifdef __cplusplus +extern "C" { +#endif + +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); +#define GetUrlCacheConfigInfo WINELIB_NAME_AW(GetUrlCacheConfigInfo) +BOOL WINAPI IncrementUrlCacheHeaderData(DWORD,LPDWORD); +BOOL WINAPI InternetQueryFortezzaStatus(DWORD*,DWORD_PTR); +BOOL WINAPI IsUrlCacheEntryExpiredA(LPCSTR,DWORD,FILETIME*); +BOOL WINAPI IsUrlCacheEntryExpiredW(LPCWSTR,DWORD,FILETIME*); +#define IsUrlCacheEntryExpired WINELIB_NAME_AW(IsUrlCacheEntryExpired) +BOOL WINAPI SetUrlCacheConfigInfoA(LPINTERNET_CACHE_CONFIG_INFOA,DWORD); +BOOL WINAPI SetUrlCacheConfigInfoW(LPINTERNET_CACHE_CONFIG_INFOW,DWORD); +#define SetUrlCacheConfigInfo WINELIB_NAME_AW(SetUrlCacheConfigInfo) +BOOL WINAPI InternetGetSecurityInfoByURLA(LPSTR,PCCERT_CHAIN_CONTEXT*,DWORD*); +BOOL WINAPI InternetGetSecurityInfoByURLW(LPCWSTR,PCCERT_CHAIN_CONTEXT*,DWORD*); +#define InternetGetSecurityInfoByURL WINELIB_NAME_AW(InternetGetSecurityInfoByURL) + +#ifdef __cplusplus +} +#endif + +#endif /* _WINE_WININETI_H_ */ |