/* NetHack 3.7 win10.h $NHDT-Date: 1596498319 2020/08/03 23:45:19 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.8 $ */ /* Copyright (C) 2018 by Bart House */ /* NetHack may be freely redistributed. See license for details. */ #ifndef WIN10_H #define WIN10_H #include "win32api.h" typedef struct { double scale; // dpi of monitor / 96 int width; // in pixels int height; // in pixels int top; // in desktop coordinate pixel space int left; // in desktop coordinate pixel space } MonitorInfo; void win10_init(void); int win10_monitor_dpi(HWND hWnd); double win10_monitor_scale(HWND hWnd); void win10_monitor_info(HWND hWnd, MonitorInfo * monitorInfo); BOOL win10_is_desktop_bridge_application(void); #endif // WIN10_H