Files
Change_bootloader/src/util.h
T

18 lines
564 B
C++

#pragma once
#include <windows.h>
#include <string>
std::wstring Format(const wchar_t* fmt, ...);
std::wstring GetExeDir();
std::wstring GetComSpec();
bool FileExists(const std::wstring& path);
void DeleteFileIfExists(const std::wstring& path);
bool CopyFileOverwrite(const std::wstring& source, const std::wstring& destination);
bool EnsureDirectory(const std::wstring& path);
int RunWait(const std::wstring& commandLine);
int GetDiskNumberForDrive(wchar_t letter);
void PumpMessages();
COLORREF ColorFromHex(DWORD rgb);
void DebugLog(const wchar_t* fmt, ...);