HeapAlloc

[DllImport("Kernel32.dll")][return: MarshalAs(UnmanagedType.SysInt)]
public static extern IntPtr HeapAlloc(
   IntPtr hHeap,
   uint dwFlags,
   UIntPtr dwBytes
);

Microsoft documentation: Link

Last updated