Global |
[FlagsAttribute] public enum GlobalAllocFlags
| Member name | Value | Description |
|---|---|---|
| GMEM_FIXED | 0 | Allocates fixed memory. The return value is a pointer. |
| GMEM_MOVEABLE | 2 | Allocates movable memory. Memory blocks are never moved in physical memory, but they can be moved within the default heap. The return value is a handle to the memory object. To translate the handle into a pointer, use the GlobalLock function. This value cannot be combined with GMEM_FIXED. |
| GMEM_ZEROINIT | 64 | Initializes memory contents to zero. |
| GPTR | 64 | Combines GMEM_FIXED and GMEM_ZEROINIT. |
| GHND | 66 | Combines GMEM_MOVEABLE and GMEM_ZEROINIT. |
The GlobalAllocFlags type exposes the following members.
| Name | Description | |
|---|---|---|
| IsT |
Determines whether the enumeration value is equal to the specified value.
(Defined by EnumerationExtensions) | |
| WithClearedFlagT |
Returns the enum value with the specified flag cleared.
(Defined by EnumerationExtensions) | |
| WithFlagT |
Returns the enum value with the specified flag set or cleared, depending on the value argument.
(Defined by EnumerationExtensions) | |
| WithSetFlagT |
Returns the enum value with the specified flag set.
(Defined by EnumerationExtensions) |