CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hrydgard

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: hrydgard/ppsspp
Path: blob/master/Windows/W32Util/ShellUtil.h
Views: 1401
1
#pragma once
2
3
#include <string>
4
#include <string_view>
5
#include <vector>
6
#include <thread>
7
8
class Path;
9
10
namespace W32Util
11
{
12
// Can't make initialPath a string_view, need the null so might as well require it.
13
std::string BrowseForFolder(HWND parent, std::string_view title, std::string_view initialPath);
14
std::string BrowseForFolder(HWND parent, const wchar_t *title, std::string_view initialPath);
15
bool BrowseForFileName(bool _bLoad, HWND _hParent, const wchar_t*_pTitle,
16
const wchar_t *_pInitialFolder, const wchar_t *_pFilter, const wchar_t*_pExtension,
17
std::string& _strFileName);
18
std::vector<std::string> BrowseForFileNameMultiSelect(bool _bLoad, HWND _hParent, const wchar_t*_pTitle,
19
const wchar_t*_pInitialFolder, const wchar_t*_pFilter, const wchar_t*_pExtension);
20
21
std::string UserDocumentsPath();
22
23
bool CreateDesktopShortcut(std::string_view argumentPath, std::string_view gameTitle, const Path &icoFile);
24
bool CreateICOFromPNGData(const uint8_t *imageData, size_t imageDataSize, const Path &icoPath);
25
26
} // namespace
27
28