UwUHax/sigs.h
2021-08-27 18:58:23 +07:00

17 lines
557 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include <Windows.h>
#include <vector>
#include <Psapi.h>
#define INRANGE(x,a,b) (x >= a && x <= b)
#define getBits( x ) (INRANGE((x&(~0x20)),'A','F') ? ((x&(~0x20)) - 'A' + 0xa) : (INRANGE(x,'0','9') ? x - '0' : 0))
#define getByte( x ) (getBits(x[0]) << 4 | getBits(x[1]))
class pattern;
DWORD Findrekt(std::string moduleName, std::string Mask);
void *FindString(void *, const char *);
void *FindProlog(void *);
void *FindPattern(void *, unsigned int, const pattern *);
void *FindPattern(const char *, const pattern *);