IThumbnailStreamCache::GetThumbnailStream method (thumbnailstreamcache.h)

Gets the thumbnail stream. This method is for internal use only and can only be called by the photos application.

Syntax

HRESULT GetThumbnailStream(
  [in]  LPCWSTR                     path,
  [in]  ULONGLONG                   cacheId,
  [in]  ThumbnailStreamCacheOptions options,
  [in]  UINT                        requestedThumbnailSize,
  [out] SIZE                        *thumbnailSize,
  [out] IStream                     **thumbnailStream
);

Parameters

[in] path

The path to the thumbnail.

[in] cacheId

The identifier of the thumbnail.

[in] options

The cache options for the thumbnail stream.

[in] requestedThumbnailSize

The requested size of the thumbnail.

[out] thumbnailSize

The actual size of the returned thumbnail.

[out] thumbnailStream

The requested thumbnail.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header thumbnailstreamcache.h

See also

IThumbnailStreamCache