Implemented RtlCompareMemory() for better compatibility with NT and made use of it in RtlSameMemory(), implemented RtlFillMemory(), RtlMoveMemory(), RtlSetMemory() and RtlZeroMemory() as well
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
2022-09-06 17:51:44 +02:00
parent d56b10f252
commit 41f1aee6e3
3 changed files with 212 additions and 27 deletions

View File

@@ -14,12 +14,24 @@
#include "xttypes.h"
XTAPI
SIZE_T
RtlCompareMemory(IN PCVOID LeftBuffer,
IN PCVOID RightBuffer,
IN SIZE_T Length);
XTAPI
VOID
RtlCopyMemory(IN PVOID Destination,
RtlCopyMemory(OUT PVOID Destination,
IN PCVOID Source,
IN SIZE_T Length);
XTAPI
VOID
RtlFillMemory(OUT PVOID Destination,
IN SIZE_T Length,
IN UCHAR Value);
VOID
RtlInitializeListHead(IN PLIST_ENTRY ListHead);
@@ -37,12 +49,24 @@ RtlInsertTailList(IN OUT PLIST_ENTRY ListHead,
BOOLEAN
RtlListEmpty(PLIST_ENTRY ListHead);
XTAPI
VOID
RtlMoveMemory(OUT PVOID Destination,
IN PCVOID Source,
IN SIZE_T Length);
XTAPI
BOOLEAN
RtlSameMemory(IN PCVOID LeftBuffer,
IN PCVOID RightBuffer,
IN SIZE_T Length);
XTAPI
VOID
RtlSetMemory(OUT PVOID Destination,
IN UCHAR Byte,
IN SIZE_T Length);
XTCDECL
INT
RtlWideStringCompare(IN CONST PWCHAR String1,
@@ -55,4 +79,9 @@ RtlWideStringTokenize(IN PWCHAR String,
IN CONST PWCHAR Delimiter,
IN OUT PWCHAR *SavePtr);
XTAPI
VOID
RtlZeroMemory(OUT PVOID Destination,
IN SIZE_T Length);
#endif /* __XTDK_RTLFUNCS_H */