Launch games under the correct user account on Windows (#600)

This commit is contained in:
Cameron Gutman
2022-12-27 14:52:41 -06:00
committed by GitHub
parent c1f0daa024
commit 05f5370efe
10 changed files with 413 additions and 39 deletions

View File

@@ -17,6 +17,20 @@
struct sockaddr;
struct AVFrame;
// Forward declarations of boost classes to avoid having to include boost headers
// here, which results in issues with Windows.h and WinSock2.h include order.
namespace boost {
namespace filesystem {
class path;
}
namespace process {
class child;
template<typename Char>
class basic_environment;
typedef basic_environment<char> environment;
} // namespace process
} // namespace boost
namespace platf {
constexpr auto MAX_GAMEPADS = 32;
@@ -289,6 +303,8 @@ std::shared_ptr<display_t> display(mem_type_e hwdevice_type, const std::string &
// A list of names of displays accepted as display_name with the mem_type_e
std::vector<std::string> display_names(mem_type_e hwdevice_type);
boost::process::child run_unprivileged(const std::string &cmd, boost::filesystem::path &working_dir, boost::process::environment &env, FILE *file, std::error_code &ec);
input_t input();
void move_mouse(input_t &input, int deltaX, int deltaY);
void abs_mouse(input_t &input, const touch_port_t &touch_port, float x, float y);