2.0.505
This commit is contained in:
vxunderground
2022-12-19 17:23:43 -06:00
parent 1e198d4dd8
commit bd5aba026d
17 changed files with 589 additions and 30 deletions
+15
View File
@@ -0,0 +1,15 @@
#include "StringManipulation.h"
PVOID MemoryFindMemory(_In_ PVOID Haystack, _In_ SIZE_T HaystackLength, _In_ PVOID Needle, _In_ SIZE_T NeedleLength)
{
if (!Haystack || !HaystackLength || !Needle || !NeedleLength)
return NULL;
for (PCHAR pChar = (PCHAR)Haystack; HaystackLength >= NeedleLength; ++pChar, --HaystackLength)
{
if (!memcmp(pChar, Needle, NeedleLength))
return pChar;
}
return NULL;
}