aboutsummaryrefslogtreecommitdiff
path: root/client/src/util/util.h
blob: a06b580535e02d9092fec4e6cbb581c834a0ccc6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "native.h"

namespace util {
	std::string wide_to_multibyte(const std::wstring& str);
	std::wstring multibyte_to_wide(const std::string& str);

	__forceinline native::_PEB* peb() {
		return reinterpret_cast<native::_PEB*>(__readgsqword(0x60));
	}

	bool close_handle(HANDLE handle);

};  // namespace util

#include "../injection/pe.h"