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.

102 lines
1.8 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. DWORD
  16. UrlCacheRetrieve
  17. (
  18. IN LPSTR pszUrl,
  19. IN BOOL fRedir,
  20. OUT HANDLE* phStream,
  21. OUT CACHE_ENTRY_INFOEX** ppCEI
  22. );
  23. void UrlCacheFlush (void); // check registry to flush cache
  24. DWORD
  25. UrlCacheCreateFile
  26. (
  27. IN LPCSTR szUrl,
  28. IN OUT LPTSTR szFile,
  29. IN LPTSTR szExt,
  30. IN HANDLE* phfHandle,
  31. IN BOOL fCreatePerUser = FALSE,
  32. IN DWORD dwExpectedLength = 0
  33. );
  34. struct AddUrlArg
  35. {
  36. LPCSTR pszUrl;
  37. LPCSTR pszRedirect;
  38. LPCTSTR pszFilePath;
  39. DWORD dwFileSize;
  40. LONGLONG qwExpires;
  41. LONGLONG qwLastMod;
  42. LONGLONG qwPostCheck;
  43. FILETIME ftCreate;
  44. DWORD dwEntryType;
  45. LPCSTR pbHeaders;
  46. DWORD cbHeaders;
  47. LPCSTR pszFileExt;
  48. BOOL fImage;
  49. DWORD dwIdentity;
  50. };
  51. DWORD UrlCacheCommitFile (IN AddUrlArg* pArgs);
  52. DWORD UrlCacheAddLeakFile (IN LPCSTR pszFile);
  53. DWORD UrlCacheSendNotification (IN DWORD dwOp);
  54. BOOL IsExpired
  55. (
  56. CACHE_ENTRY_INFOEX* pInfo,
  57. DWORD dwCacheFlags,
  58. BOOL* pfLaxyUpdate
  59. );
  60. extern const char vszUserNameHeader[4];
  61. #ifdef UNIX
  62. extern "C"
  63. #endif /* UNIX */
  64. BOOL GetIE5ContentPath( LPSTR szPath);
  65. #if 0
  66. DWORD SwitchIdentity(GUID* guidIdentity);
  67. DWORD RemoveIdentity(GUID* guidIdentity);
  68. DWORD AlterIdentity(DWORD dwControl);
  69. #endif
  70. #ifdef WININET6
  71. DWORD ReadIDRegDword(LPCTSTR psz, PDWORD pdw);
  72. DWORD WriteIDRegDword(LPCTSTR psz, DWORD dw);
  73. #endif
  74. #endif //URLCACHE.H