Share via


NdisEqualMemory (Windows Embedded CE 6.0)

1/6/2010

This function compares a specified number of characters in one block of memory with the same number of characters in a second block of memory.

Syntax

ULONG NdisEqualMemory(
  CONST VOID* Source1,
  CONST VOID* Source2,
  ULONG Length
);

Parameters

  • Source1
    Points to the first block of memory to be compared.
  • Source2
    Points to the second block of memory to be compared.
  • Length
    Specifies the number of bytes to be compared.

Return Value

The default return value is 0. If the compared blocks are the same, the return value is 1. 0therwise, this function returns a 0.

Remarks

NdisEqualMemory compares the initial Length bytes in the first block of memory to the initial Length bytes in the second block of memory. The data type of anything in the compared memory blocks is irrelevant.

Requirements

Header ndis.h
Library ndis.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NDIS Library Functions
NdisAllocateMemory
NdisCopyBuffer
NdisFillMemory
NdisFreeMemory
NdisMoveMemory
NdisZeroMemory