Files
wufuc/wufuc/patternfind.h
zeffy 8052351b64 bigly changes (see description)
- use LdrRegisterDllNotification instead of LoadLibraryExW for patching
** LoadLibraryExW is currently still hooked for the UpdatePack7 compatibility fix, I'm looking into other alternatives
- more robust error checking
- refactored a lot of code to be more reusable
- header guards
- better logging framework
- tighter permissions on the unload event
- probably other stuff I forgot about
2017-08-27 19:04:57 -07:00

17 lines
505 B
C

#ifndef PATTERNFIND_H
#define PATTERNFIND_H
#pragma once
#include <Windows.h>
typedef struct _PATTERNBYTE {
struct _PATTERNNIBBLE {
unsigned char data;
BOOL wildcard;
} nibble[2];
} PATTERNBYTE, *PPATTERNBYTE, *LPPATTERNBYTE;
unsigned char *patternfind(unsigned char *data, size_t datasize, size_t startindex, const char *pattern);
unsigned char *patternsnr(unsigned char *data, size_t datasize, size_t startindex, const char *searchpattern, const char *replacepattern);
#endif