Public Declaration CopyMemory

CopyMemory (RtlMoveMemory) moves memory either forward or backward, _ aligned or unaligned, in 4-byte blocks, followed by any remaining bytes.

Library

kernel32

Alias

RtlMoveMemory

Type Return

A None Object

Syntax

CopyMemory Destination, Source, Length

The CopyMemory  Declaration syntax has these parts:

Part Description
DestinationRequired. A Any Value. Points to the destination of the move.
SourceRequired. A Any Value. Points to the memory to be copied.
LengthRequired. A Long Value. Specifies the number of bytes to be copied.

Remarks

The (Source + Length) can overlap the Destination range passed in to CopyMemory (RtlMoveMemory).