This structure provides detailed information about the progress and
final state of a download managed by the browser. Before calling a
function that populates this structure, such as GetDownloadInfo,
the caller must set the dwSize member to the size of the structure.
This ensures that applications remain compatible if new fields are added
in future updates.
The uiBytesTotal and uiBytesCopied members allow
applications to report download progress or log completed downloads.
If the total file size is not known, uiBytesTotal will be zero
and applications should base their progress reporting on the number of
bytes copied alone.
The dwFileId member can be obtained from
WebViewEnumDownloads, and is required to retrieve download
information or to cancel a pending download.
Both ANSI (A) and Unicode (W) versions of this structure are
provided. Applications that call GetDownloadInfoW will
populate the wide-character members of the structure (such as
szFileName and szFileUrl) with UTF-16 encoded text.
Applications that call GetDownloadInfoA will receive
the ANSI version of the structure, where those same members are
returned as UTF-8 encoded strings. The default WEBVIEW_DOWNLOAD_INFO
macro maps to one or the other depending on whether the UNICODE
preprocessor symbol is defined at compile time.