Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
1.9 KiB

  1. #ifndef URLCACHE_H
  2. #define URLCACHE_H
  3. /*++
  4. Copyright (c) 1997 Microsoft Corporation
  5. Module Name:
  6. urlcache.h
  7. Abstract:
  8. Urlcache API enhanced and optimized for internal use by wininet.
  9. Author:
  10. Rajeev Dujari (rajeevd) 10-Apr-1997
  11. Revision History:
  12. 10-Apr-97 rajeevd
  13. Created
  14. --*/
  15. struct CACHE_ENTRY_INFOEX : INTERNET_CACHE_ENTRY_INFO
  16. {
  17. FILETIME ftDownload;
  18. FILETIME ftPostCheck;
  19. };
  20. DWORD
  21. UrlCacheRetrieve
  22. (
  23. IN LPSTR pszUrl,
  24. IN BOOL fRedir,
  25. OUT HANDLE* phStream,
  26. OUT CACHE_ENTRY_INFOEX** ppCEI
  27. );
  28. void UrlCacheFlush (void); // check registry to flush cache
  29. DWORD
  30. UrlCacheCreateFile
  31. (
  32. IN LPCSTR szUrl,
  33. IN OUT LPTSTR szFile,
  34. IN LPTSTR szExt,
  35. IN HANDLE* phfHandle,
  36. IN BOOL fCreatePerUser = FALSE
  37. );
  38. struct AddUrlArg
  39. {
  40. LPCSTR pszUrl;
  41. LPCSTR pszRedirect;
  42. LPCTSTR pszFilePath;
  43. DWORD dwFileSize;
  44. LONGLONG qwExpires;
  45. LONGLONG qwLastMod;
  46. LONGLONG qwPostCheck;
  47. FILETIME ftCreate;
  48. DWORD dwEntryType;
  49. LPCSTR pbHeaders;
  50. DWORD cbHeaders;
  51. LPCSTR pszFileExt;
  52. BOOL fImage;
  53. DWORD dwIdentity;
  54. };
  55. DWORD UrlCacheCommitFile (IN AddUrlArg* pArgs);
  56. DWORD UrlCacheAddLeakFile (IN LPCSTR pszFile);
  57. DWORD UrlCacheSendNotification (IN DWORD dwOp);
  58. BOOL IsExpired
  59. (
  60. CACHE_ENTRY_INFOEX* pInfo,
  61. DWORD dwCacheFlags,
  62. BOOL* pfLaxyUpdate
  63. );
  64. extern const char vszUserNameHeader[4];
  65. #ifdef UNIX
  66. extern "C"
  67. #endif /* UNIX */
  68. BOOL DLLUrlCacheEntry( IN DWORD Reason );
  69. BOOL GetIE5ContentPath( LPSTR szPath);
  70. DWORD SwitchIdentity(GUID* guidIdentity);
  71. DWORD RemoveIdentity(GUID* guidIdentity);
  72. DWORD AlterIdentity(DWORD dwControl);
  73. #ifdef WININET6
  74. DWORD ReadIDRegDword(LPCTSTR psz, PDWORD pdw);
  75. DWORD WriteIDRegDword(LPCTSTR psz, DWORD dw);
  76. #endif
  77. #endif //URLCACHE.H