aboutsummaryrefslogtreecommitdiff
path: root/include/KInterface.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2019-09-24 00:17:17 +0200
committerToni Uhlig <matzeton@googlemail.com>2019-09-24 00:17:17 +0200
commitb7bb1a6a8ecfb20dd53a874a76ad87100455c98c (patch)
treee1c1cdb46596175306763586786304f2851de4a7 /include/KInterface.h
parent673cec06fab76718ade9b3763b8d43daddeaeeda (diff)
added pattern checker and memory mapping method callbacks and managment functions
Diffstat (limited to 'include/KInterface.h')
-rw-r--r--include/KInterface.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/include/KInterface.h b/include/KInterface.h
index 1149fd3..e990f6c 100644
--- a/include/KInterface.h
+++ b/include/KInterface.h
@@ -92,32 +92,4 @@ public:
return -1;
return wr.SizeRes;
}
-};
-
-template <SIZE_T SIZE>
-struct Diff {
- BYTE current_buffer[SIZE];
- BYTE old_buffer[SIZE];
- std::vector<std::pair<SIZE_T, SIZE_T>> diffs;
-};
-
-class KScan
-{
-public:
- template <typename T, SIZE_T SIZE>
- static SSIZE_T ScanSimple(HANDLE targetPID, PVOID start_address, SIZE_T max_scansize, T(&a)[SIZE])
- {
- return KScanSimple(targetPID, start_address, max_scansize, a, sizeof T * SIZE);
- }
- template <SIZE_T SIZE>
- static SSIZE_T BinDiffSimple(HANDLE targetPID, PVOID start_address, Diff<SIZE> *diff)
- {
- return KBinDiffSimple(targetPID, start_address, diff->current_buffer,
- diff->old_buffer, SIZE, &diff->diffs);
- }
-private:
- static SSIZE_T KScanSimple(HANDLE targetPID, PVOID start_address, SIZE_T max_scansize,
- PVOID scanbuf, SIZE_T scanbuf_size);
- static SSIZE_T KBinDiffSimple(HANDLE targetPid, PVOID start_address,
- BYTE *curbuf, BYTE *oldbuf, SIZE_T siz, std::vector<std::pair<SIZE_T, SIZE_T>> *diffs);
}; \ No newline at end of file