25 lines
827 B
C++
25 lines
827 B
C++
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// Copyright (c) 2026 Paravis
|
|
|
|
#pragma once
|
|
|
|
#include <windows.h>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
std::wstring Format(const wchar_t* fmt, ...);
|
|
std::wstring GetTempDir();
|
|
std::wstring GetExeDir();
|
|
std::wstring GetRunStamp();
|
|
std::wstring JoinPath(const std::wstring& dir, const std::wstring& name);
|
|
bool FileExists(const std::wstring& path);
|
|
bool IsWimFile(const std::wstring& path);
|
|
bool IsAdmin();
|
|
std::string WideToAnsi(const std::wstring& text, UINT codepage = CP_ACP);
|
|
std::wstring AnsiToWide(const std::string& text, UINT codepage = CP_ACP);
|
|
bool WriteAnsiFile(const std::wstring& path, const std::wstring& text);
|
|
std::string ReadFileBytes(const std::wstring& path);
|
|
std::wstring GetComSpec();
|
|
COLORREF ColorFromHex(DWORD rgb);
|
|
void DebugLog(const wchar_t* fmt, ...);
|