Skip to content

Commit

Permalink
Add GlobalAlloc flags (halildurmus#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
halildurmus authored Sep 25, 2023
1 parent c7c22bc commit c1484b1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/src/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10895,3 +10895,27 @@ const DBT_CUSTOMEVENT = 0x8006;

/// The meaning of this message is user-defined.
const DBT_USERDEFINED = 0xFFFF;

// -----------------------------------------------------------------------------
// GlobalAlloc flags
// -----------------------------------------------------------------------------

/// Allocates fixed memory. The return value is a pointer.
const GMEM_FIXED = 0x0000;

/// 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.
const GMEM_MOVABLE = 0x0002;

/// Initializes memory contents to zero.
const GMEM_ZEROINIT = 0x0040;

/// Combines GMEM_FIXED and GMEM_ZEROINIT.
const GPTR = 0x0040;

/// Combines GMEM_MOVABLE and GMEM_ZEROINIT.
const GHND = 0x0042;

0 comments on commit c1484b1

Please sign in to comment.