RtlCompareMemory RtlCompareMemory compares blocks of memory and returns the number of bytes that are equivalent.
SIZE_T RtlCompareMemory( IN CONST VOID *Source1, IN CONST VOID *Source2, IN SIZE_T Length ); 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. Include wdm.h or ntddk.h
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.