NdisEqualMemory function

The NdisEqualMemory 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

A pointer to the first block of memory to be compared.

Source2

A pointer to the second block of memory to be compared.

Length

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 two blocks of memory and uses the value that is specified in the Length parameter for both blocks. 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

Supported for existing drivers in NDIS 6.0 and later, but new drivers should use RtlEqualMemory instead.

Header

Ndis.h (include Ndis.h)

IRQL

See Remarks section

DDI compliance rules

Irql_Miscellaneous_Function

See also

NdisAllocateMemoryWithTagPriority
RtlFillMemory
NdisFreeMemory
RtlCopyMemory
RtlZeroMemory

 

 

Send comments about this topic to Microsoft

Show: