Source code of Windows XP (NT5)
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.

43 lines
814 B

  1. class CFile;
  2. enum UPLOAD_STATE
  3. {
  4. UPLOAD_STATE_CREATE_SESSION,
  5. UPLOAD_STATE_SEND_DATA,
  6. UPLOAD_STATE_GET_REPLY,
  7. UPLOAD_STATE_CLOSE_SESSION,
  8. UPLOAD_STATE_CLOSED,
  9. UPLOAD_STATE_CANCEL_SESSION,
  10. UPLOAD_STATE_CANCELLED
  11. };
  12. struct UPLOAD_DATA
  13. {
  14. UPLOAD_STATE State;
  15. bool fSchedulable;
  16. GUID Protocol;
  17. GUID SessionId;
  18. StringHandle ReplyUrl;
  19. StringHandle HostId;
  20. DWORD HostIdFallbackTimeout;
  21. FILETIME HostIdNoProgressStartTime;
  22. //---------------------------
  23. UPLOAD_DATA();
  24. ~UPLOAD_DATA();
  25. void Serialize( HANDLE hFile );
  26. void Unserialize( HANDLE hFile );
  27. void SetUploadState( UPLOAD_STATE NewState );
  28. };
  29. FILE_DOWNLOAD_RESULT
  30. CategorizeError(
  31. QMErrInfo & ErrInfo
  32. );