CopyMemory (urlmon)
Last changed: -180.214.232.93

.
Summary
Copies a block of memory from one location to another.

C# Signature:

[DllImport("kernel32.dll", EntryPoint = "CopyMemory", SetLastError = false)]

public static extern void CopyMemory(IntPtr dest, IntPtr src, uint count);

VB Signature:

Declare Function CopyMemory Lib "urlmon.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

    static void Main()
    {
    const int size = 200;
    IntPtr memorySource = Marshal.AllocHGlobal(size);
    IntPtr memoryTarget = Marshal.AllocHGlobal(size);

    CopyMemory(memoryTarget,memorySource,size);
    }

Documentation
CopyMemory on MSDN