Files
nsis-plugin-ns7zip/versions/25.01/CPP/7zip/UI/FileManager/BrowseDialog.h
T
Simone d074cc7c07 chore: initial commit (extracted from Launchers monorepo)
Plugin: ns7zip v2.0.0
Architectures: x86-ansi, x86-unicode, amd64-unicode
License: LGPL-2.1-or-later
2026-04-29 14:07:51 +02:00

33 lines
898 B
C

// BrowseDialog.h
#ifndef ZIP7_INC_BROWSE_DIALOG_H
#define ZIP7_INC_BROWSE_DIALOG_H
#include "../../../Windows/CommonDialog.h"
bool MyBrowseForFolder(HWND owner, LPCWSTR title, LPCWSTR path, UString &resultPath);
struct CBrowseFilterInfo
{
UStringVector Masks;
UString Description;
};
struct CBrowseInfo: public NWindows::CCommonDialogInfo
{
bool BrowseForFile(const CObjectVector<CBrowseFilterInfo> &filters);
};
/* CorrectFsPath removes undesirable characters in names (dots and spaces at the end of file)
But it doesn't change "bad" name in any of the following cases:
- path is Super Path (with \\?\ prefix)
- path is relative and relBase is Super Path
- there is file or dir in filesystem with specified "bad" name */
bool CorrectFsPath(const UString &relBase, const UString &path, UString &result);
bool Dlg_CreateFolder(HWND wnd, UString &destName);
#endif