DwmApiDwmQueryThumbnailSourceSize Method

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

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("DwmApi.dll", SetLastError = true)]
public static HResult DwmQueryThumbnailSourceSize(
	IntPtr thumbnailId,
	out NativeSize refSize
)

Parameters

thumbnailId  IntPtr
A handle to the thumbnail to retrieve the source window size from.
refSize  NativeSize
A pointer to a NativeSize structure that, when this function returns successfully, receives the size of the source thumbnail.

Return Value

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

Remarks

See Also