Wireshark  4.3.0
The Wireshark network protocol analyzer
file_dlg_win32.h
Go to the documentation of this file.
1 
12 #ifndef __FILE_DLG_WIN32_H__
13 #define __FILE_DLG_WIN32_H__
14 
15 #ifndef RC_INVOKED // RC warns about gatomic's long identifiers.
16 #include "ui/file_dialog.h"
17 #include "ui/packet_range.h"
18 #endif
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif /* __cplusplus */
23 
38 
44 
52 bool win32_open_file (HWND h_wnd, const wchar_t *title, GString *file_name, unsigned int *type, GString *display_filter);
53 
66 bool win32_save_as_file(HWND h_wnd, const wchar_t *title, capture_file *cf,
67  GString *file_name, int *file_type,
68  wtap_compression_type *compression_type,
69  bool must_support_comments);
70 
83  const wchar_t *title,
84  capture_file *cf,
85  GString *file_name,
86  int *file_type,
87  wtap_compression_type *compression_type,
88  packet_range_t *range);
89 
90 
98 bool win32_merge_file (HWND h_wnd, const wchar_t *title, GString *file_name, GString *display_filter, int *merge_type);
99 
107 void win32_export_file (HWND h_wnd, const wchar_t *title, capture_file *cf, export_type_e export_type, const char *range);
108 
109 /* Open dialog defines */
110 /* #define EWFD_FILTER_BTN 1000 */
111 #define EWFD_FILTER_LBL 1000
112 #define EWFD_FILTER_EDIT 1001
113 
114 #define EWFD_MAC_NR_CB 1002
115 #define EWFD_NET_NR_CB 1003
116 #define EWFD_TRANS_NR_CB 1004
117 #define EWFD_EXTERNAL_NR_CB 1005
118 
119 /* Note: The preview title (PT) and text (PTX) MUST have sequential IDs;
120  they're used in a for loop. EWFD_PT_FILENAME MUST be first, and
121  EWFD_PTX_ELAPSED MUST be last. (so why don't we just use an enum? */
122 #define EWFD_PT_FORMAT 1006
123 #define EWFD_PT_SIZE 1007
124 #define EWFD_PT_START_ELAPSED 1008
125 
126 #define EWFD_PTX_FORMAT 1009
127 #define EWFD_PTX_SIZE 1010
128 #define EWFD_PTX_START_ELAPSED 1011
129 
130 #define EWFD_FORMAT_TYPE 1020
131 
132 /* Save as and export dialog defines */
133 #define EWFD_GZIP_CB 1040
134 
135 /* Export dialog defines */
136 #define EWFD_CAPTURED_BTN 1000
137 #define EWFD_DISPLAYED_BTN 1001
138 #define EWFD_ALL_PKTS_BTN 1002
139 #define EWFD_SEL_PKT_BTN 1003
140 #define EWFD_MARKED_BTN 1004
141 #define EWFD_FIRST_LAST_BTN 1005
142 #define EWFD_RANGE_BTN 1006
143 #define EWFD_RANGE_EDIT 1007
144 #define EWFD_REMOVE_IGN_CB 1008
145 
146 #define EWFD_ALL_PKTS_CAP 1009
147 #define EWFD_SEL_PKT_CAP 1010
148 #define EWFD_MARKED_CAP 1011
149 #define EWFD_FIRST_LAST_CAP 1012
150 #define EWFD_RANGE_CAP 1013
151 #define EWFD_IGNORED_CAP 1014
152 
153 #define EWFD_ALL_PKTS_DISP 1015
154 #define EWFD_SEL_PKT_DISP 1016
155 #define EWFD_MARKED_DISP 1017
156 #define EWFD_FIRST_LAST_DISP 1018
157 #define EWFD_RANGE_DISP 1019
158 #define EWFD_IGNORED_DISP 1020
159 
160 /* Merge dialog defines. Overlays Open dialog defines above. */
161 #define EWFD_MERGE_PREPEND_BTN 1050
162 #define EWFD_MERGE_CHRONO_BTN 1051
163 #define EWFD_MERGE_APPEND_BTN 1052
164 
165 /* Export dialog defines. Overlays Save dialog defines above. */
166 /* These MUST be contiguous */
167 #define EWFD_PKT_FORMAT_GB 1050
168 #define EWFD_PKT_SUMMARY_CB 1051
169 #define EWFD_COL_HEADINGS_CB 1052
170 #define EWFD_PKT_DETAIL_CB 1053
171 #define EWFD_PKT_DETAIL_COMBO 1054
172 #define EWFD_PKT_BYTES_CB 1055
173 #define EWFD_DATA_SOURCES_CB 1056
174 #define EWFD_PKT_NEW_PAGE_CB 1057
175 
176 #ifdef __cplusplus
177 }
178 #endif /* __cplusplus */
179 
180 #endif /* __FILE_DLG_WIN32_H__ */
void revert_thread_per_monitor_v2_awareness(HANDLE context)
revert_thread_per_monitor_v2_awareness
bool win32_merge_file(HWND h_wnd, const wchar_t *title, GString *file_name, GString *display_filter, int *merge_type)
bool win32_export_specified_packets_file(HWND h_wnd, const wchar_t *title, capture_file *cf, GString *file_name, int *file_type, wtap_compression_type *compression_type, packet_range_t *range)
HANDLE set_thread_per_monitor_v2_awareness(void)
set_thread_per_monitor_v2_awareness
void win32_export_file(HWND h_wnd, const wchar_t *title, capture_file *cf, export_type_e export_type, const char *range)
bool win32_open_file(HWND h_wnd, const wchar_t *title, GString *file_name, unsigned int *type, GString *display_filter)
bool win32_save_as_file(HWND h_wnd, const wchar_t *title, capture_file *cf, GString *file_name, int *file_type, wtap_compression_type *compression_type, bool must_support_comments)
Definition: cfile.h:67
Definition: packet_range.h:39