Platform SDK: Memory

MoveMemory

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

VOID MoveMemory (
  PVOID Destination,   // move destination
  CONST VOID *Source,  // block to move
  SIZE_T Length        // size of block to move
);

Parameters

Destination
[in] Pointer to the starting address of the destination of the move.
Source
[in] Pointer to the starting address of the block of memory to move.
Length
[in] 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.

MAPI: For more information, see Syntax and Limitations for Win32 Functions Useful in MAPI Development.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Winbase.h; include Windows.h.

See Also

Memory Management Overview, Memory Management Functions, CopyMemory, FillMemory, ZeroMemory