movememory (kernel32)
Last changed: -74.62.163.26

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

C# Signature:

[DllImport("Kernel32.dll", EntryPoint="RtlMoveMemory" SetLastError=true)]
static extern void MoveMemory(IntPtr dest, IntPtr src, int size);

VB Signature:

Declare Auto Sub MoveMemory Lib "Kernel32.dll" _
    Alias RtlMoveMemory(IntPtr dest, IntPtr src, int size)

User-Defined Types:

None.

Alternative Managed API:

Use Marshal.Copy() twice to move from the unmanaged heap into a managed array and back out. Not ideal.

Notes:

VB developers might want to check the VB declaration thoroughly...

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation
MoveMemory on MSDN