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.

29 lines
700 B

  1. #ifndef _DOWNLOAD_H_
  2. #define _DOWNLOAD_H_
  3. #include "hierarchy.h"
  4. struct ResourceInfo {
  5. P3PURL pszFinalURL;
  6. int cbURL;
  7. char *pszLocalPath;
  8. int cbPath;
  9. FILETIME ftExpiryDate;
  10. };
  11. int downloadToCache(P3PCURL pszLocation, ResourceInfo *pInfo = NULL,
  12. HANDLE *phCancelReq = NULL,
  13. P3PRequest *pRequest = NULL);
  14. void endDownload(HANDLE hConnect);
  15. int setExpiration(P3PCURL pszResource, const char *pszExpData, BOOL fRelative, FILETIME *pftExpire);
  16. int setExpiration(P3PCURL pszResource, FILETIME ftExpire);
  17. bool operator > (const FILETIME &ftA, const FILETIME &ftB);
  18. #endif