DwmApiDwmUnregisterThumbnail Method

Removes a Desktop Window Manager (DWM) thumbnail relationship previously created by the DwmRegisterThumbnail(IntPtr, IntPtr, IntPtr) function.

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 DwmUnregisterThumbnail(
	IntPtr thumbnailId
)

Parameters

thumbnailId  IntPtr
The handle to the thumbnail relationship to be removed.

A value of Zero or invalid thumbnail handles will result in a return value of E_INVALIDARG.

Return Value

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

Remarks

See Also