This documentation is archived and is not being maintained.

Marshal.AllocHGlobal Method

Allocates a block of memory using LocalAlloc.

Name Description
Marshal.AllocHGlobal (Int32) Allocates memory from the unmanaged memory of the process using GlobalAlloc.

Supported by the .NET Compact Framework.

Marshal.AllocHGlobal (IntPtr) Allocates memory from the process's unmanaged memory.
Show: