Поделиться через


NdisMoveMemory (Compact 2013)

3/26/2014

This function copies a specified number of bytes from one caller-supplied location to another.

Syntax

VOID NdisMoveMemory(
  PVOID Destination,
  PVOID Source,
  ULONG Length
);

Parameters

  • Destination
    [out] Pointers to a system-space buffer that is the destination of the move. This buffer must be at least Length bytes in size.
  • Source
    [in] Pointer to a system-space buffer from which this function copies the data to the destination buffer. This buffer must be at least Length bytes in size.
  • Length
    [in] Specifies the number of bytes to copy.

Return Value

None.

Remarks

Both Source and Destination are virtual addresses.

If either address falls within a range of device memory that was mapped with the NdisMMapIoSpace function, a network adapter driver calls one of the NdisXXXMappedMemory functions instead of this function.

The range that is specified by Source and Length cannot overlap the Destination range.

Callers of NdisMoveMemory can run at any IRQL if the given Source and Destination are resident. Otherwise, callers must be running at IRQL < DISPATCH_LEVEL, as, for example if either address is on the stack.

Requirements

Header

ndis.h

Library

ndis.dll

See Also

Reference

NDIS Memory Interface
NdisAllocateMemory
NdisMMapIoSpace
NdisAllocateMemoryWithTagPriority