[DllImport("kernel32.dll", SetLastError=true)]
static extern TODO dwFlags(TODO);
Declare Function dwFlags Lib "kernel32.dll" (TODO) As TODO
/// <summary>
/// dwFlags - The heap allocation options. Specifying any of these
/// values will override the corresponding value specified when the heap was created
/// with HeapCreate. This parameter can be one or more of the following values.
/// Ref: https://learn.microsoft.com/en-us/windows/win32/api/heapapi/nf-heapapi-heapalloc
/// </summary>
[Flags]
public enum dwFlags
{
/// <summary>
/// The system will raise an exception to indicate a function failure,
/// such as an out-of-memory condition, instead of returning NULL.
/// To ensure that exceptions are generated for all calls to this function,
/// specify HEAP_GENERATE_EXCEPTIONS in the call to HeapCreate. In this case,
/// it is not necessary to additionally specify HEAP_GENERATE_EXCEPTIONS in this function call.
/// </summary>
HEAP_GENERATE_EXCEPTIONS = 0x00040000,
/// <summary>
/// Serialized access will not be used for this allocation.
/// For more information, see Remarks.
/// To ensure that serialized access is disabled for all calls to this function,
/// specify HEAP_NO_SERIALIZE in the call to HeapCreate. In this case, it is not
/// necessary to additionally specify HEAP_NO_SERIALIZE in this function call.
/// This value should not be specified when accessing the process's default heap.
/// The system may create additional threads within the application's process, such
/// as a CTRL+C handler, that simultaneously access the process's default heap.
/// </summary>
HEAP_NO_SERIALIZE = 0x00000001,
/// <summary>
/// The allocated memory will be initialized to zero. Otherwise,
/// the memory is not initialized to zero.
/// </summary>
HEAP_ZERO_MEMORY = 0x00000008
}
Do you know one? Please contribute it!
None.
Please add some!
Please add some!