CryptMemAlloc

[DllImport("Crypt32.dll", SetLastError = true)]
public static extern IntPtr CryptMemAlloc(
   uint cbSize
);

Microsoft documentation: Link

Last updated