mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-05 08:10:40 -07:00
0a7ecf82a9
to speed up clean builds. GitHub CI time went from 20 minutes -> 10 minutes.
37 lines
897 B
C++
37 lines
897 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <cstdint>
|
|
|
|
namespace sysutils {
|
|
void print_smbios();
|
|
void print_gpus();
|
|
void print_os();
|
|
|
|
struct MonitorEntry {
|
|
std::string display_name; // \\.\DISPLAY1
|
|
std::wstring friendly_name; // Dell S2204T; wstring so that it can be converted to utf8 or string
|
|
bool is_primary;
|
|
uint32_t adapter_id_LowPart;
|
|
int32_t adapter_id_HighPart;
|
|
uint32_t id;
|
|
};
|
|
|
|
const std::vector<MonitorEntry> &enumerate_monitors();
|
|
|
|
// reads the running module's PE header to determine whether the
|
|
// IMAGE_FILE_LARGE_ADDRESS_AWARE bit is set (i.e. spice_laa.exe)
|
|
bool is_large_address_aware();
|
|
|
|
extern std::string SECOND_MONITOR_OVERRIDE;
|
|
void hook_EnumDisplayDevicesA();
|
|
|
|
#if !SPICE_XP
|
|
|
|
bool is_running_as_admin();
|
|
bool relaunch_as_admin();
|
|
|
|
#endif // !SPICE_XP
|
|
}
|