DwmApiDwmSetIconicThumbnail(SafeHandle, SafeBitmapHandle, DwmIconicThumbnailFlags) Method

Sets a static iconic Bitmap on a window or tab to use as a thumbnail representation.

The Taskbar can use this Bitmap as a thumbnail switch target for the window or tab.

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")]
public static int DwmSetIconicThumbnail(
	SafeHandle hWnd,
	SafeBitmapHandle hBitmap,
	DwmIconicThumbnailFlags flags
)

Parameters

hWnd  SafeHandle
A handle To the window Or tab.

This window must belong To the calling process.

hBitmap  SafeBitmapHandle
A handle to the bitmap to represent the window that hwnd specifies.
flags  DwmIconicThumbnailFlags
The display options for the thumbnail.

Return Value

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

Remarks

See Also