Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / ui / win32 / file_dlg_win32.h
blobeef7fe389e5b57721b6c4fe4c609273a8ae738f5
1 /** @file
3 * Native Windows file dialog routines
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 2006 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __FILE_DLG_WIN32_H__
13 #define __FILE_DLG_WIN32_H__
15 #ifdef __cplusplus
16 extern "C" {
17 #endif /* __cplusplus */
19 /**
20 * @brief set_thread_per_monitor_v2_awareness
22 * Qt <= 5.9 supports setting old (Windows 8.1) per-monitor DPI awareness
23 * via Qt:AA_EnableHighDpiScaling. We do this in main.cpp. In order for
24 * native dialogs to be rendered correctly we need to set per-monitor
25 * *v2* awareness prior to creating the dialog, which we can do here.
26 * Qt < 5.14(?) or so doesn't render correctly when per-monitor v2 awareness
27 * is enabled, so we need to revert our thread context when we're done.
28 * Qt >= 6.0 is per-monitor DPI awareness v2 by default, so this doesn't
29 * have any effect.
31 * @return The current thread DPI awareness context, which should
32 * be passed to revert_thread_per_monitor_v2_awareness.
34 HANDLE set_thread_per_monitor_v2_awareness(void);
36 /**
37 * @brief revert_thread_per_monitor_v2_awareness
38 * @param context
40 void revert_thread_per_monitor_v2_awareness(HANDLE context);
42 #ifdef __cplusplus
44 #endif /* __cplusplus */
46 #endif /* __FILE_DLG_WIN32_H__ */