19 lines
605 B
C++
19 lines
605 B
C++
#pragma once
|
|
|
|
#include <windows.h>
|
|
#include <string>
|
|
|
|
std::wstring Format(const wchar_t* fmt, ...);
|
|
std::wstring GetExeDir();
|
|
std::wstring GetExeFileName();
|
|
std::wstring GetWindowsDir();
|
|
std::wstring GetTempDir();
|
|
bool FileExists(const std::wstring& path);
|
|
bool DirectoryExists(const std::wstring& path);
|
|
bool ExtractResourceToFile(HINSTANCE instance, int resourceId, const wchar_t* type,
|
|
const std::wstring& path);
|
|
int RunWait(const std::wstring& commandLine, bool hidden = false);
|
|
void PumpMessages();
|
|
COLORREF ColorFromHex(DWORD rgb);
|
|
void DebugLog(const wchar_t* fmt, ...);
|