Sunshine v2026.319.132152
Self-hosted game stream host for Moonlight.
misc.h
Go to the documentation of this file.
1
5#pragma once
6
7// standard includes
8#include <chrono>
9#include <filesystem>
10#include <string>
11#include <string_view>
12
13// platform includes
14#include <Windows.h>
15#include <winnt.h>
16
17namespace platf {
18 void print_status(const std::string_view &prefix, HRESULT status);
19 HDESK syncThreadDesktop();
20
21 int64_t qpc_counter();
22
23 std::chrono::nanoseconds qpc_time_difference(int64_t performance_counter1, int64_t performance_counter2);
24
31 bool getFileVersionInfo(const std::filesystem::path &file_path, std::string &version_str);
32} // namespace platf
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:1768