Share via


NdisEqualMemory (NDIS 5.1) function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

NdisEqualMemory 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
    Pointer to the first block of memory to be compared.

  • Source2
    Pointer to the second block of memory to be compared.

  • Length
    Specifies the number of bytes to be compared.

Return value

NdisEqualMemory returns one if the compared blocks are the same; otherwise, this function returns a zero.

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.

Callers of NdisEqualMemory can be running at IRQL <= DISPATCH_LEVEL if both memory blocks are resident. If either block is pageable, callers must be running at IRQL < DISPATCH_LEVEL.

Requirements

Target platform

Desktop

Version

See NdisEqualMemory.

Header

Ndis.h (include Ndis.h)

IRQL

See Remarks section.

See also

NdisAllocateMemoryWithTag

NdisCopyBuffer

NdisFillMemory

NdisFreeMemory

NdisMoveMemory

NdisZeroMemory

 

 

Send comments about this topic to Microsoft