共用方式為


DO_DOWNLOAD_STATUS 結構 (deliveryoptimization.h)

DO_DOWNLOAD_STATUS結構可用來取得特定下載的狀態。 它是藉由呼叫 IDODownload::GetStatus 函式來取得。

語法

typedef struct _DO_DOWNLOAD_STATUS {
  UINT64          BytesTotal;
  UINT64          BytesTransferred;
  DODownloadState State;
  HRESULT         Error;
  HRESULT         ExtendedError;
} DO_DOWNLOAD_STATUS;

成員

BytesTotal

要下載的位元組總數。

BytesTransferred

已經下載的位元組數目。

State

DODownloadState列舉所定義的目前下載狀態。

Error

如果錯誤資訊存在, (與目前下載相關聯的) 。

ExtendedError

如果擴充錯誤資訊存在, (與目前下載相關聯的) 。

需求

   
最低支援的用戶端 Windows 11組建 22621
標頭 deliveryoptimization.h