mirror of
https://github.com/TheCruZ/kdmapper
synced 2026-06-06 16:54:27 +00:00
29 lines
845 B
C++
29 lines
845 B
C++
#pragma once
|
|
|
|
#if defined(DISABLE_OUTPUT)
|
|
#define Log(content)
|
|
#else
|
|
#define Log(content) std::wcout << content
|
|
#endif
|
|
|
|
|
|
#include <Windows.h>
|
|
#include <TlHelp32.h>
|
|
#include <stdint.h>
|
|
#include <vector>
|
|
#include <string>
|
|
#include <iostream>
|
|
#include <fstream>
|
|
|
|
#include "nt.hpp"
|
|
|
|
namespace utils
|
|
{
|
|
std::wstring GetFullTempPath();
|
|
bool ReadFileToMemory(const std::wstring& file_path, std::vector<uint8_t>* out_buffer);
|
|
bool CreateFileFromMemory(const std::wstring& desired_file_path, const char* address, size_t size);
|
|
uint64_t GetKernelModuleAddress(const std::string& module_name);
|
|
BOOLEAN bDataCompare(const BYTE* pData, const BYTE* bMask, const char* szMask);
|
|
uintptr_t FindPattern(uintptr_t dwAddress, uintptr_t dwLen, BYTE* bMask, const char* szMask);
|
|
PVOID FindSection(const char* sectionName, uintptr_t modulePtr, PULONG size);
|
|
} |