mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Revert of the change to the DWMWINDOWATTRIBUTE, as the enum values were not fixed we lost some functionality. Also fixed some potential issues with the ThumbnailForm, and aligned a bit of code with Dapplo.Window [skip ci]
This commit is contained in:
parent
d637efbb70
commit
b22d982f36
7 changed files with 174 additions and 102 deletions
|
@ -23,6 +23,7 @@ using System;
|
|||
using System.Drawing;
|
||||
using System.Runtime.InteropServices;
|
||||
using GreenshotPlugin.Core;
|
||||
using GreenshotPlugin.Core.Enums;
|
||||
using GreenshotPlugin.UnmanagedHelpers.Enums;
|
||||
using GreenshotPlugin.UnmanagedHelpers.Structs;
|
||||
using Microsoft.Win32;
|
||||
|
@ -40,9 +41,9 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
|||
[DllImport("dwmapi", SetLastError = true)]
|
||||
public static extern int DwmUnregisterThumbnail(IntPtr thumb);
|
||||
[DllImport("dwmapi", SetLastError = true)]
|
||||
public static extern int DwmQueryThumbnailSourceSize(IntPtr thumb, out SIZE size);
|
||||
public static extern HResult DwmQueryThumbnailSourceSize(IntPtr thumb, out SIZE size);
|
||||
[DllImport("dwmapi", SetLastError = true)]
|
||||
public static extern int DwmUpdateThumbnailProperties(IntPtr hThumb, ref DWM_THUMBNAIL_PROPERTIES props);
|
||||
public static extern HResult DwmUpdateThumbnailProperties(IntPtr hThumb, ref DWM_THUMBNAIL_PROPERTIES props);
|
||||
|
||||
// Deprecated as of Windows 8 Release Preview
|
||||
[DllImport("dwmapi", SetLastError = true)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue