Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

flOptions (Enums)
 
.
Summary
flOptions - The heap allocation options. These options affect subsequent access to the new heap through calls to

the heap functions. This parameter can be 0 or one or more of the following values.

C# Definition:

  /// <summary>
  /// flOptions - HeapCreate used.
  /// Hexidecimal values.
  /// Ref: https://learn.microsoft.com/en-us/windows/win32/api/heapapi/nf-heapapi-heapcreate
  /// </summary>
  [Flags]
  enum flOptions
  {
    /// <summary>
    /// All memory blocks that are allocated from this heap allow code execution,
    /// if the hardware enforces data execution prevention. Use this flag heap in
    /// applications that run code from the heap. If HEAP_CREATE_ENABLE_EXECUTE is
    /// not specified and an application attempts to run code from a protected page,
    /// the application receives an exception with the status code STATUS_ACCESS_VIOLATION.
    /// </summary>
    HEAP_CREATE_ENABLE_EXECUTE = 0x00040000,

    /// <summary>
    /// The system raises an exception to indicate failure (for example, an out-of-memory condition)
    /// for calls to HeapAlloc and HeapReAlloc instead of returning NULL.
    /// </summary>
    HEAP_GENERATE_EXCEPTIONS = 0x00000004,

    /// <summary>
    /// Serialized access is not used when the heap functions access this heap.
    /// This option applies to all subsequent heap function calls. Alternatively,
    /// ou can specify this option on individual heap function calls.
    /// The low-fragmentation heap (LFH) cannot be enabled for a heap created with
    /// this option. A heap created with this option cannot be locked.
    /// For more information about serialized access, see the Remarks section of this topic.
    /// </summary>
    HEAP_NO_SERIALIZE = 0x00000001
  }

VB Definition:

Enum flOptions
   TODO
End Enum

Notes:

None.

Documentation
flOptions on MSDN
 

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions