DwmUpdateThumbnailProperties (dwmapi)
Last changed: -67.128.30.210

.
Summary
TODO - a short description

C# Signature:

[DllImport("dwmapi.dll", PreserveSig = true)]
public static extern int DwmUpdateThumbnailProperties(IntPtr hThumbnail, ref DWM_THUMBNAIL_PROPERTIES props);

VB Signature:

Public Declare Function DwmUpdateThumbnailProperties Lib "dwmapi.dll" (ByVal hThumbnail as IntPtr, ByRef props as DWM_THUMBNAIL_PROPERTIES) As Integer

User-Defined Types:

DWM_THUMBNAIL_PROPERTIES

[StructLayout(LayoutKind.Sequential)]
public struct RECT
{      
     public int Left, Top, Right, Bottom;
}
[StructLayout(LayoutKind.Sequential)]
public struct DWM_THUMBNAIL_PROPERTIES
{
     public int dwFlags;
     public RECT rcDestination;
     public RECT rcSource;
     public byte opacity;
     public int fVisible;
     public int fSourceClientAreaOnly;
}

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

hThumbnail is a handle to a thumbnail created by DwmRegisterThumbnail.

'PreserveSig = true' is important, otherwise you'll get stack imbalances.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation