IDWriteRemoteFontFileStream::BeginDownload method (dwrite_3.h)

Begins downloading all or part of the font file.

Syntax

HRESULT BeginDownload(
  [in] UUID const                 *downloadOperationID,
  [in] DWRITE_FILE_FRAGMENT const *fileFragments,
       UINT32                     fragmentCount,
       IDWriteAsyncResult         **asyncResult
);

Parameters

[in] downloadOperationID

Type: UUID

[in] fileFragments

Type: DWRITE_FILE_FRAGMENT

Array of structures, each specifying a byte range to download.

fragmentCount

Type: UINT32

Number of elements in the fileFragments array. This can be zero to just download file information, such as the size.

asyncResult

Type: COM_Outptr_result_maybenull

Receives an object that can be used to wait for the asynchronous download to complete and to get the download result upon completion. The result may be NULL if the download completes synchronously. For example, this can happen if method determines that the requested data is already local.

Return value

Type: HRESULT

This method returns an HRESULT success or error code.

Requirements

   
Target Platform Windows
Header dwrite_3.h
Library Dwrite.lib

See also

IDWriteRemoteFontFileStream