[DllImport("Kernel32.dll", EntryPoint="RtlZeroMemory", SetLastError=false)]
static extern void ZeroMemory(IntPtr dest, int size);
Declare Auto Sub ZeroMemory Lib "Kernel32.dll" _
Alias "RtlZeroMemory" (ByVal dest As IntPtr, ByVal size As Integer)
<DllImport("kernel32.dll")> _
Public Shared Sub ZeroMemory(ByVal addr As IntPtr, ByVal size As Integer)
End Sub
None.
Use Marshal.Copy() to copy an zero-filled managed array onto the unmanaged heap.
VB developers might want to check the VB declaration thoroughly...
Please add some!
Please add some!