[PATCH 1/5] include: Add shellscalingapi.h

Alex Henrie alexhenrie24 at gmail.com
Mon Jan 22 22:55:34 CST 2018


From: Sebastian Lackner <sebastian at fds-team.de>

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
Patch adapted from Wine Staging.

 include/Makefile.in       |  1 +
 include/shellscalingapi.h | 37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)
 create mode 100644 include/shellscalingapi.h

diff --git a/include/Makefile.in b/include/Makefile.in
index bb6f8d6fab..b975dd585e 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -617,6 +617,7 @@ HEADER_SRCS = \
 	sfc.h \
 	shdispid.h \
 	shellapi.h \
+	shellscalingapi.h \
 	shlguid.h \
 	shlobj.h \
 	shlwapi.h \
diff --git a/include/shellscalingapi.h b/include/shellscalingapi.h
new file mode 100644
index 0000000000..4999db741a
--- /dev/null
+++ b/include/shellscalingapi.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2016 Sebastian Lackner
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __WINE_SHELLSCALINGAPI_H
+#define __WINE_SHELLSCALINGAPI_H
+
+typedef enum MONITOR_DPI_TYPE
+{
+    MDT_EFFECTIVE_DPI   = 0,
+    MDT_ANGULAR_DPI     = 1,
+    MDT_RAW_DPI         = 2,
+    MDT_DEFAULT         = MDT_EFFECTIVE_DPI,
+} MONITOR_DPI_TYPE;
+
+typedef enum PROCESS_DPI_AWARENESS
+{
+    PROCESS_DPI_UNAWARE                 = 0,
+    PROCESS_SYSTEM_DPI_AWARE            = 1,
+    PROCESS_PER_MONITOR_DPI_AWARE       = 2,
+} PROCESS_DPI_AWARENESS;
+
+#endif /* __WINE_SHELLSCALINGAPI_H */
-- 
2.16.1




More information about the wine-devel mailing list