2012-11-01 15:19:01 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
2024-01-25 11:47:37 +00:00
|
|
|
#include <string_view>
|
2012-11-01 15:19:01 +00:00
|
|
|
#include <vector>
|
2017-02-27 19:51:36 +00:00
|
|
|
#include <thread>
|
2012-11-01 15:19:01 +00:00
|
|
|
|
2024-05-12 23:37:53 +00:00
|
|
|
class Path;
|
|
|
|
|
2024-01-19 12:44:49 +00:00
|
|
|
namespace W32Util
|
|
|
|
{
|
2024-05-12 23:37:53 +00:00
|
|
|
// Can't make initialPath a string_view, need the null so might as well require it.
|
|
|
|
std::string BrowseForFolder(HWND parent, std::string_view title, std::string_view initialPath);
|
|
|
|
std::string BrowseForFolder(HWND parent, const wchar_t *title, std::string_view initialPath);
|
|
|
|
bool BrowseForFileName(bool _bLoad, HWND _hParent, const wchar_t*_pTitle,
|
|
|
|
const wchar_t *_pInitialFolder, const wchar_t *_pFilter, const wchar_t*_pExtension,
|
|
|
|
std::string& _strFileName);
|
|
|
|
std::vector<std::string> BrowseForFileNameMultiSelect(bool _bLoad, HWND _hParent, const wchar_t*_pTitle,
|
|
|
|
const wchar_t*_pInitialFolder, const wchar_t*_pFilter, const wchar_t*_pExtension);
|
|
|
|
|
|
|
|
std::string UserDocumentsPath();
|
2024-01-19 12:44:49 +00:00
|
|
|
|
2024-05-12 23:37:53 +00:00
|
|
|
bool CreateDesktopShortcut(std::string_view argumentPath, std::string_view gameTitle, const Path &icoFile);
|
|
|
|
bool CreateICOFromPNGData(const uint8_t *imageData, size_t imageDataSize, const Path &icoPath);
|
2024-01-19 12:44:49 +00:00
|
|
|
|
2024-05-12 23:37:53 +00:00
|
|
|
} // namespace
|