The CopyMemory function copies a block of memory from one location to another.
VOID CopyMemory (
PVOID Destination, |
// address of copy destination |
CONST VOID *Source, |
// address of block to copy |
DWORD Length |
// size, in bytes, of block to copy |
); |
This function has no return value.
If the source and destination blocks overlap, the results are undefined. For overlapped blocks, use the MoveMemory function.
FillMemory, MoveMemory, ZeroMemory
See: