ZeroMemory (coredll)
Last changed: -194.176.105.41

.
Summary
TODO - a short description

C# Signature:

public class CoreDll
{
     [DllImport("coredll.dll", EntryPoint = "memset", SetLastError = false)]
     private static extern void memset(IntPtr dest, int c, int size);

     public static bool ZeroMemory(object o)
     {
        try
        {
           GCHandle gc = GCHandle.Alloc(o, GCHandleType.Pinned);
           memset(gc.AddrOfPinnedObject(), 0, Marshal.SizeOf(o));
           gc.Free();
           return true;
        }
        catch (ArgumentException)
        {
           return false;
        }
        catch (InvalidOperationException)
        {
           return false;
        }
        catch (NotImplementedException)
        {
           return false;
        }
        catch (NotSupportedException)
        {
           return false;
        }
    }
}

VB Signature:

Declare Function ZeroMemory Lib "CoreDll.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:

Please add some!

Documentation
ZeroMemory on MSDN