VideoPortCompareMemory function

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

Syntax

VIDEOPORT_API ULONG VideoPortCompareMemory(
  PVOID  Source1,
  PVOID  Source2,
  SIZE_T Length
);

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.

Requirements

   
Minimum supported client Available in Windows 2000 and later versions of the Windows operating systems.
Target Platform Desktop
Header video.h (include Video.h)
Library Videoprt.lib
DLL Videoprt.sys
IRQL Any level (see Remarks section)

See Also

VideoPortGetDeviceBase

VideoPortMoveMemory

VideoPortScanRom

VideoPortZeroDeviceMemory

VideoPortZeroMemory