MoveMemory

The MoveMemory function moves a block of memory from one location to another.

VOID MoveMemory (
  PVOID Destination,  // address of move destination
  CONST VOID *Source, // address of block to move
  DWORD Length        // size, in bytes, of block to move
);
 

Parameters

Destination
Pointer to the starting address of the destination of the move.
Source
Pointer to the starting address of the block of memory to move.
Length
Specifies the size, in bytes, of the block of memory to move.

Return Values

This function has no return value.

Remarks

The source and destination blocks may overlap.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winbase.h.

See Also

Memory Management Overview, Memory Management Functions, CopyMemory, CopyMemoryVlm, FillMemory, FillMemoryVlm, MoveMemoryVlm, ZeroMemory