mumble/plugins/HostWindows.h
Davide Beatrici 198621f19c FIX(client): Use ReadProcessMemory() instead of Toolhelp32ReadProcessMemory()
I was wrong in d7f0302ce7.

Turns out Toolhelp32ReadProcessMemory() is simply a wrapper for ReadProcessMemory() that takes care of opening an handle to the process and closing it.

For reference: https://github.com/MicrosoftDocs/sdk-api/pull/793
2021-06-02 02:56:05 +02:00

27 lines
593 B
C++

// Copyright 2020-2021 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"
typedef uint32_t procid_t;
class HostWindows {
protected:
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);
virtual ~HostWindows();
};
#endif