// video.h
VIDEOPORT_API ULONG VideoPortCompareMemory(
PVOID Source1,
PVOID Source2,
SIZE_T Length
);
View the official Windows Driver Kit DDI referenceNo description available.
The VideoPortCompareMemory function compares two blocks of system memory, byte-by-byte, and returns the number of compared bytes that are equivalent.
Source1Pointer to the first block of memory to compare.
Source2Pointer to the second block of memory to compare.
LengthSpecifies the number of bytes to be compared.
VideoPortCompareMemory returns the number of bytes that are equivalent. If both blocks are equivalent, it returns the Length parameter.
The values in the Source1 and Source2 parameters must be in a mapped logical range returned by VideoPortGetDeviceBase and/or a system space RAM address, such as an address on the stack.
Callers of VideoPortCompareMemory can be running at any IRQL if both blocks of memory are resident.