Geomatics.Windows.PInvoke.Kernel32 by Christian Junk

<PackageReference Include="Geomatics.Windows.PInvoke.Kernel32" Version="0.0.2" />

 Kernel32

public static class Kernel32
public enum GlobalAllocFlags

public enum GlobalReAllocFlags

public static void CopyMemory(IntPtr dest, IntPtr src, int size)

public static uint GetLastError()

public static IntPtr GlobalAlloc(uint uFlags, UIntPtr dwBytes)

public static IntPtr GlobalFree(IntPtr hMem)

public static IntPtr GlobalLock(IntPtr hMem)

public static UIntPtr GlobalSize(IntPtr hMem)

public static IntPtr GlobalUnlock(IntPtr hMem)

public static byte[] StructureToByteArray<T>(T structure)