mumble/plugins/HostWindows.h
sqwishy 2fa25dd479 FEAT(positional-audio): Plugin for Grounded
Positional audio support for the Steam release of Grounded.

Tested on 1.4.3.4578, 1.4.4.4634, and 1.4.5.4679.
2024-10-04 14:54:16 -07:00

31 lines
728 B
C++

// Copyright The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#ifndef HOSTWINDOWS_H_
#define HOSTWINDOWS_H_
#include "Module.h"
using procid_t = uint64_t;
class HostWindows {
protected:
static std::string utf16To8(const std::wstring &wstr);
procid_t m_pid;
void *m_handle;
public:
bool peek(const procptr_t address, void *dst, const size_t size) const;
Modules modules() const;
HostWindows(const procid_t pid);
HostWindows(const HostWindows &) = delete;
HostWindows(HostWindows &&other) noexcept;
virtual ~HostWindows();
};
#endif