Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
file_dlg_win32.h
1 /* file_dlg_win32.h
2  * Native Windows file dialog routines
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 2006 Gerald Combs
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later
9  */
10 
11 #ifndef __FILE_DLG_WIN32_H__
12 #define __FILE_DLG_WIN32_H__
13 
14 #ifndef RC_INVOKED // RC warns about gatomic's long identifiers.
15 #include "ui/file_dialog.h"
16 #include "ui/packet_range.h"
17 #endif
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif /* __cplusplus */
22 
36 HANDLE set_thread_per_monitor_v2_awareness(void);
37 
42 void revert_thread_per_monitor_v2_awareness(HANDLE context);
43 
51 gboolean win32_open_file (HWND h_wnd, GString *file_name, unsigned int *type, GString *display_filter);
52 
62 check_savability_t win32_check_save_as_with_comments(HWND parent, capture_file *cf, int file_type);
63 
76 gboolean win32_save_as_file(HWND h_wnd, capture_file *cf,
77  GString *file_name, int *file_type,
78  gboolean *compressed,
79  gboolean must_support_comments);
80 
92 gboolean win32_export_specified_packets_file(HWND h_wnd,
93  capture_file *cf,
94  GString *file_name,
95  int *file_type,
96  gboolean *compressed,
97  packet_range_t *range);
98 
99 
107 gboolean win32_merge_file (HWND h_wnd, GString *file_name, GString *display_filter, int *merge_type);
108 
115 void win32_export_file (HWND h_wnd, capture_file *cf, export_type_e export_type);
116 
122 void win32_export_raw_file (HWND h_wnd, capture_file *cf);
123 
128 void win32_export_sslkeys_file (HWND h_wnd);
129 
136 void win32_export_color_file(HWND h_wnd, capture_file *cf, gpointer filter_list);
137 
143 void win32_import_color_file(HWND h_wnd, gpointer color_filters);
144 
153 gboolean win32_save_as_statstree(HWND h_wnd, GString *file_name,
154  int *file_type);
155 
156 void file_set_save_marked_sensitive();
157 
158 /* Open dialog defines */
159 /* #define EWFD_FILTER_BTN 1000 */
160 #define EWFD_FILTER_LBL 1000
161 #define EWFD_FILTER_EDIT 1001
162 
163 #define EWFD_MAC_NR_CB 1002
164 #define EWFD_NET_NR_CB 1003
165 #define EWFD_TRANS_NR_CB 1004
166 #define EWFD_EXTERNAL_NR_CB 1005
167 
168 /* Note: The preview title (PT) and text (PTX) MUST have sequential IDs;
169  they're used in a for loop. EWFD_PT_FILENAME MUST be first, and
170  EWFD_PTX_ELAPSED MUST be last. (so why don't we just use an enum? */
171 #define EWFD_PT_FORMAT 1006
172 #define EWFD_PT_SIZE 1007
173 #define EWFD_PT_START_ELAPSED 1008
174 
175 #define EWFD_PTX_FORMAT 1009
176 #define EWFD_PTX_SIZE 1010
177 #define EWFD_PTX_START_ELAPSED 1011
178 
179 #define EWFD_FORMAT_TYPE 1020
180 
181 /* Save as and export dialog defines */
182 #define EWFD_GZIP_CB 1040
183 
184 /* Export dialog defines */
185 #define EWFD_CAPTURED_BTN 1000
186 #define EWFD_DISPLAYED_BTN 1001
187 #define EWFD_ALL_PKTS_BTN 1002
188 #define EWFD_SEL_PKT_BTN 1003
189 #define EWFD_MARKED_BTN 1004
190 #define EWFD_FIRST_LAST_BTN 1005
191 #define EWFD_RANGE_BTN 1006
192 #define EWFD_RANGE_EDIT 1007
193 #define EWFD_REMOVE_IGN_CB 1008
194 
195 #define EWFD_ALL_PKTS_CAP 1009
196 #define EWFD_SEL_PKT_CAP 1010
197 #define EWFD_MARKED_CAP 1011
198 #define EWFD_FIRST_LAST_CAP 1012
199 #define EWFD_RANGE_CAP 1013
200 #define EWFD_IGNORED_CAP 1014
201 
202 #define EWFD_ALL_PKTS_DISP 1015
203 #define EWFD_SEL_PKT_DISP 1016
204 #define EWFD_MARKED_DISP 1017
205 #define EWFD_FIRST_LAST_DISP 1018
206 #define EWFD_RANGE_DISP 1019
207 #define EWFD_IGNORED_DISP 1020
208 
209 /* Export raw dialog defines. */
210 #define EWFD_EXPORTRAW_ST 1000
211 
212 /* Export SSL Session Keys dialog defines. */
213 #define EWFD_EXPORTSSLKEYS_ST 1000
214 
215 /* Merge dialog defines. Overlays Open dialog defines above. */
216 #define EWFD_MERGE_PREPEND_BTN 1050
217 #define EWFD_MERGE_CHRONO_BTN 1051
218 #define EWFD_MERGE_APPEND_BTN 1052
219 
220 /* Export dialog defines. Overlays Save dialog defines above. */
221 /* These MUST be contiguous */
222 #define EWFD_PKT_FORMAT_GB 1050
223 #define EWFD_PKT_SUMMARY_CB 1051
224 #define EWFD_COL_HEADINGS_CB 1052
225 #define EWFD_PKT_DETAIL_CB 1053
226 #define EWFD_PKT_DETAIL_COMBO 1054
227 #define EWFD_PKT_BYTES_CB 1055
228 #define EWFD_PKT_NEW_PAGE_CB 1056
229 
230 #ifdef __cplusplus
231 }
232 #endif /* __cplusplus */
233 
234 #endif /* __FILE_DLG_WIN32_H__ */
Definition: packet_range.h:38
Definition: cfile.h:58