~ruther/NosSmooth

ref: 9ac147de3607a46efd83939a7790a87d7a33cf42 NosSmooth/Local/NosSmooth.LocalCore/ModuleHook.h -rw-r--r-- 402 bytes
9ac147de — František Boháček chore: rename type generators to inline converter generators 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#include <windows.h>

namespace NosSmoothCore
{
	class ModuleHook
	{
	public:
		static ModuleHook CreateNostaleXDatModule();
		ModuleHook(unsigned int baseAddress, unsigned int moduleSize);

		unsigned int GetModuleBaseAddress();
		unsigned int FindPattern(const BYTE* lpPattern, LPCSTR szMask);
	private:
		unsigned int _baseAddress;
		unsigned int _moduleSize;
	};
}