VideoPortCompareMemory - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// video.h

VIDEOPORT_API ULONG VideoPortCompareMemory(
  PVOID  Source1,
  PVOID  Source2,
  SIZE_T Length
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-video-videoportcomparememory)

VideoPortCompareMemory function

Description

The VideoPortCompareMemory function compares two blocks of system memory, byte-by-byte, and returns the number of compared bytes that are equivalent.

Parameters

Source1

Pointer to the first block of memory to compare.

Source2

Pointer to the second block of memory to compare.

Length

Specifies the number of bytes to be compared.

Return value

VideoPortCompareMemory returns the number of bytes that are equivalent. If both blocks are equivalent, it returns the Length parameter.

Remarks

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.

See also

VideoPortGetDeviceBase

VideoPortMoveMemory

VideoPortScanRom

VideoPortZeroDeviceMemory

VideoPortZeroMemory