ULONG
RtlCompareMemory(
IN PVOID Source1,
IN PVOID Source2,
IN ULONG Length
);
RtlCompareMemory compares blocks of memory and returns the number of bytes that are equivalent.
RtlCompareMemory returns the number of bytes that compare as equal. If all bytes compare as equal, the input Length is returned.
Callers of RtlCompareMemory can be running at any IRQL if both blocks of memory are resident.