aboutsummaryrefslogtreecommitdiffstats
path: root/ui/win32
diff options
context:
space:
mode:
Diffstat (limited to 'ui/win32')
-rw-r--r--ui/win32/file_dlg_win32.c21
-rw-r--r--ui/win32/file_dlg_win32.h9
2 files changed, 16 insertions, 14 deletions
diff --git a/ui/win32/file_dlg_win32.c b/ui/win32/file_dlg_win32.c
index ae383d8206..4bb2f4a9d3 100644
--- a/ui/win32/file_dlg_win32.c
+++ b/ui/win32/file_dlg_win32.c
@@ -161,7 +161,7 @@ static unsigned int g_format_type = WTAP_TYPE_AUTO;
*/
gboolean
-win32_open_file (HWND h_wnd, GString *file_name, unsigned int *type, GString *display_filter) {
+win32_open_file (HWND h_wnd, const wchar_t *title, GString *file_name, unsigned int *type, GString *display_filter) {
OPENFILENAME *ofn;
TCHAR file_name16[MAX_PATH] = _T("");
int ofnsize = sizeof(OPENFILENAME);
@@ -199,7 +199,7 @@ win32_open_file (HWND h_wnd, GString *file_name, unsigned int *type, GString *di
} else {
ofn->lpstrInitialDir = utf_8to16(get_last_open_dir());
}
- ofn->lpstrTitle = _T("Wireshark: Open Capture File");
+ ofn->lpstrTitle = title;
ofn->Flags = OFN_ENABLESIZING | OFN_ENABLETEMPLATE | OFN_EXPLORER |
OFN_NOCHANGEDIR | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY |
OFN_ENABLEHOOK | OFN_SHOWHELP;
@@ -314,7 +314,7 @@ win32_check_save_as_with_comments(HWND parent, capture_file *cf, int file_type)
}
gboolean
-win32_save_as_file(HWND h_wnd, capture_file *cf, GString *file_name, int *file_type,
+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,
gboolean must_support_all_comments)
{
@@ -359,7 +359,7 @@ win32_save_as_file(HWND h_wnd, capture_file *cf, GString *file_name, int *file_t
ofn->lpstrFileTitle = NULL;
ofn->nMaxFileTitle = 0;
ofn->lpstrInitialDir = utf_8to16(get_last_open_dir());
- ofn->lpstrTitle = _T("Wireshark: Save file as");
+ ofn->lpstrTitle = title;
ofn->Flags = OFN_ENABLESIZING | OFN_ENABLETEMPLATE | OFN_EXPLORER |
OFN_NOCHANGEDIR | OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY |
OFN_PATHMUSTEXIST | OFN_ENABLEHOOK | OFN_SHOWHELP;
@@ -449,7 +449,8 @@ gboolean win32_save_as_statstree(HWND h_wnd, GString *file_name, int *file_type)
gboolean
-win32_export_specified_packets_file(HWND h_wnd, capture_file *cf,
+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,
@@ -490,7 +491,7 @@ win32_export_specified_packets_file(HWND h_wnd, capture_file *cf,
ofn->lpstrFileTitle = NULL;
ofn->nMaxFileTitle = 0;
ofn->lpstrInitialDir = utf_8to16(get_last_open_dir());
- ofn->lpstrTitle = _T("Wireshark: Export Specified Packets");
+ ofn->lpstrTitle = title;
ofn->Flags = OFN_ENABLESIZING | OFN_ENABLETEMPLATE | OFN_EXPLORER |
OFN_NOCHANGEDIR | OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY |
OFN_PATHMUSTEXIST | OFN_ENABLEHOOK | OFN_SHOWHELP;
@@ -531,7 +532,7 @@ win32_export_specified_packets_file(HWND h_wnd, capture_file *cf,
gboolean
-win32_merge_file (HWND h_wnd, GString *file_name, GString *display_filter, int *merge_type) {
+win32_merge_file (HWND h_wnd, const wchar_t *title, GString *file_name, GString *display_filter, int *merge_type) {
OPENFILENAME *ofn;
TCHAR file_name16[MAX_PATH] = _T("");
int ofnsize = sizeof(OPENFILENAME);
@@ -569,7 +570,7 @@ win32_merge_file (HWND h_wnd, GString *file_name, GString *display_filter, int *
} else {
ofn->lpstrInitialDir = utf_8to16(get_last_open_dir());
}
- ofn->lpstrTitle = _T("Wireshark: Merge with capture file");
+ ofn->lpstrTitle = title;
ofn->Flags = OFN_ENABLESIZING | OFN_ENABLETEMPLATE | OFN_EXPLORER |
OFN_NOCHANGEDIR | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY |
OFN_ENABLEHOOK | OFN_SHOWHELP;
@@ -608,7 +609,7 @@ win32_merge_file (HWND h_wnd, GString *file_name, GString *display_filter, int *
}
void
-win32_export_file(HWND h_wnd, capture_file *cf, export_type_e export_type) {
+win32_export_file(HWND h_wnd, const wchar_t *title, capture_file *cf, export_type_e export_type) {
OPENFILENAME *ofn;
TCHAR file_name[MAX_PATH] = _T("");
char *dirname;
@@ -631,7 +632,7 @@ win32_export_file(HWND h_wnd, capture_file *cf, export_type_e export_type) {
ofn->lpstrFileTitle = NULL;
ofn->nMaxFileTitle = 0;
ofn->lpstrInitialDir = utf_8to16(get_last_open_dir());
- ofn->lpstrTitle = _T("Wireshark: Export Packet Dissections");
+ ofn->lpstrTitle = title;
ofn->Flags = OFN_ENABLESIZING | OFN_ENABLETEMPLATE | OFN_EXPLORER |
OFN_NOCHANGEDIR | OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY |
OFN_PATHMUSTEXIST | OFN_ENABLEHOOK | OFN_SHOWHELP;
diff --git a/ui/win32/file_dlg_win32.h b/ui/win32/file_dlg_win32.h
index e80c944de5..971cf11bd8 100644
--- a/ui/win32/file_dlg_win32.h
+++ b/ui/win32/file_dlg_win32.h
@@ -48,7 +48,7 @@ void revert_thread_per_monitor_v2_awareness(HANDLE context);
* @param type File type
* @param display_filter a display filter
*/
-gboolean win32_open_file (HWND h_wnd, GString *file_name, unsigned int *type, GString *display_filter);
+gboolean win32_open_file (HWND h_wnd, const wchar_t *title, GString *file_name, unsigned int *type, GString *display_filter);
/** Verify that our proposed capture file format supports comments. If it can't
* ask the user what to do and return his or her response.
@@ -73,7 +73,7 @@ check_savability_t win32_check_save_as_with_comments(HWND parent, capture_file *
*
* @return TRUE if packets were discarded when saving, FALSE otherwise
*/
-gboolean win32_save_as_file(HWND h_wnd, capture_file *cf,
+gboolean 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,
gboolean must_support_comments);
@@ -90,6 +90,7 @@ gboolean win32_save_as_file(HWND h_wnd, capture_file *cf,
* @return TRUE if packets were discarded when saving, FALSE otherwise
*/
gboolean win32_export_specified_packets_file(HWND h_wnd,
+ const wchar_t *title,
capture_file *cf,
GString *file_name,
int *file_type,
@@ -104,7 +105,7 @@ gboolean win32_export_specified_packets_file(HWND h_wnd,
* @param display_filter a display filter
* @param merge_type type of merge
*/
-gboolean win32_merge_file (HWND h_wnd, GString *file_name, GString *display_filter, int *merge_type);
+gboolean win32_merge_file (HWND h_wnd, const wchar_t *title, GString *file_name, GString *display_filter, int *merge_type);
/** Open the "Export" dialog box.
*
@@ -112,7 +113,7 @@ gboolean win32_merge_file (HWND h_wnd, GString *file_name, GString *display_filt
* @param cf capture_file Structure for the capture to be saved
* @param export_type The export type.
*/
-void win32_export_file (HWND h_wnd, capture_file *cf, export_type_e export_type);
+void win32_export_file (HWND h_wnd, const wchar_t *title, capture_file *cf, export_type_e export_type);
/** Open the "Save As" dialog box for stats_tree statistics window.
*