24 void print_status(
const std::string_view &prefix, HRESULT status);
46 std::chrono::nanoseconds
qpc_time_difference(int64_t performance_counter1, int64_t performance_counter2);
54 bool getFileVersionInfo(
const std::filesystem::path &file_path, std::string &version_str);
int64_t qpc_counter()
Read the current Windows high-resolution performance counter.
Definition misc.cpp:1764
bool getFileVersionInfo(const std::filesystem::path &file_path, std::string &version_str)
Get file version information from a Windows executable or driver file.
Definition misc.cpp:1852
std::chrono::nanoseconds qpc_time_difference(int64_t performance_counter1, int64_t performance_counter2)
Convert the difference between two QPC readings to nanoseconds.
Definition misc.cpp:1775
HDESK syncThreadDesktop()
Synchronize thread desktop.
Definition misc.cpp:224
void print_status(const std::string_view &prefix, HRESULT status)
Write status details to the log.
Definition misc.cpp:246