Marshal::AllocHGlobal Method
.NET Framework (current version)
Allocates memory from the unmanaged memory of the process.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | AllocHGlobal(Int32) | Allocates memory from the unmanaged memory of the process by using the specified number of bytes. |
![]() ![]() | AllocHGlobal(IntPtr) | Allocates memory from the unmanaged memory of the process by using the pointer to the specified number of bytes. |
Show:

