This documentation is archived and is not being maintained.

Marshal.AllocHGlobal Method

Allocates a block of memory using LocalAlloc.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Public method Static member Supported by the .NET Compact Framework AllocHGlobal(Int32) Allocates memory from the unmanaged memory of the process.
Public method Static member AllocHGlobal(IntPtr) Allocates memory from the process's unmanaged memory.