NetApiBufferAllocate

[DllImport("netapi32.dll", SetLastError = true)]
public static extern uint NetApiBufferAllocate(
   uint ByteSize,
   out IntPtr Buffer
);

Microsoft documentation: Link

Last updated