DwmQueryThumbnailSourceSize function

Retrieves the source size of the Desktop Window Manager (DWM) thumbnail.

Syntax

DWMAPI DwmQueryThumbnailSourceSize(
  HTHUMBNAIL hThumbnail,
  PSIZE      pSize
);

Parameters

hThumbnail

A handle to the thumbnail to retrieve the source window size from.

pSize

A pointer to a SIZE structure that, when this function returns successfully, receives the size of the source thumbnail.

Return Value

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

Requirements

   
Windows version Windows Vista [desktop apps only] Windows Server 2008 [desktop apps only]
Target Platform Windows
Header dwmapi.h
Library Dwmapi.lib
DLL Dwmapi.dll

See Also

DWM Thumbnail Overview

Desktop Window Manager Overview

DwmUpdateThumbnailProperties