[DllImport("dwmapi.dll", PreserveSig = true)]
public static extern int DwmUpdateThumbnailProperties(IntPtr hThumbnail, ref DWM_THUMBNAIL_PROPERTIES props);
Public Declare Function DwmUpdateThumbnailProperties Lib "dwmapi.dll" (ByVal hThumbnail as IntPtr, ByRef props as DWM_THUMBNAIL_PROPERTIES) As Integer
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;
}
Do you know one? Please contribute it!
hThumbnail is a handle to a thumbnail created by DwmRegisterThumbnail.
'PreserveSig = true' is important, otherwise you'll get stack imbalances.
Please add some!
Please add some!