RtlCompareMemory

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.

Parameters

Source1

Points to a block of memory to compare.

Source2

Points to a block of memory to compare.

Length

Specifies the number of bytes to be compared.

Return Value

RtlCompareMemory returns the number of bytes that compare as equal. If all bytes compare as equal, the input Length is returned.

Comments

Callers of RtlCompareMemory can be running at any IRQL if both blocks of memory are resident.