- HandleGlobalAlloc(Integer Flags dWord Bytes)
The GlobalAlloc function allocates the specified number of bytes from the
heap. The 'Flags' parameter specifies how to allocate memory. If zero is
specified, the default is GMEM_FIXED. Except for the incompatible
combinations that are specifically noted, any combination of the following
flags can be used. To indicate whether the function allocates fixed or
movable memory, specify one of the first four flags.
- HandleGlobalDiscard(Handle MemObject)
The GlobalDiscard function discards the specified global memory block. The
lock count of the memory object must be zero.
- IntegerGlobalFlags(Handle MemObject)
The GlobalFlags function returns information about the specified global
memory object.
- HandleGlobalFree(Handle MemObject)
The GlobalFree function frees the specified global memory object and
invalidates its handle.
- HandleGlobalHandle(Pointer MemObject)
The GlobalHandle function retrieves the handle associated with the
specified pointer to a global memory block.
- PointerGlobalLock(Handle MemObject)
The GlobalLock function locks a global memory object and returns a pointer
to the first byte of the object's memory block. The memory block associated
with a locked memory object cannot be moved or discarded. For memory
objects allocated with the GMEM_MOVEABLE flag, the function increments the
lock count associated with the memory object.
- HandleGlobalReAlloc(Handle MemObject dWord Bytes Integer Flags)
The GlobalReAlloc function changes the size or attributes of a specified
global memory object. The size can increase or decrease.
- dWordGlobalSize(Handle MemObject)
The GlobalSize function retrieves the current size, in bytes, of the
specified global memory object.
- IntegerGlobalUnlock(Handle MemObject)
The GlobalUnlock function decrements the lock count associated with a
memory object that was allocated with the GMEM_MOVEABLE flag. This function
has no effect on memory objects allocated with the GMEM_FIXED flag.
- IntegerWOWGetVDMPointer(dWord vp dWord dwBytes Integer fProtectedMode)
The WOWGetVDMPointer function converts a 16:16 address to the equivalent
linear address.
- IntegerWOWGetVDMPointerFix(dWord vp dWord d2wBytes Integer fProtectedMode)
The WOWGetVDMPointerFix function converts a 16:16 address to the equivalent
linear address.
Windows 95: This function calls the GlobalFix function before returning the
linear address so that the 16-bit memory block will not be moved around in
the 16-bit global heap.
Windows NT: This function behaves like the WOWGetVDMPointer function. The
memory is not fixed.
- IntegerWOWGetVDMPointerUnfix(Pointer vp)
Windows 95: The WOWGetVDMPointerUnfix function uses the GlobalUnfix
function to unfix a pointer retrieved by the WOWGetVDMPointerFix function.
Windows NT: This function has no effect
- IntegerWOWGlobalAlloc16(Integer wFlags dWord cb)
The WOWGlobalAlloc16 function allocates the specified number of bytes from
the 16-bit global heap.
- dWordWOWGlobalAllocLock16(Integer wFlags dWord cb Integer phMem)
The WOWGlobalAllocLock16 function combines the functionality of the
WOWGlobalAlloc16 and WOWGlobalLock16 functions.
- IntegerWOWGlobalFree16(Integer hMem)
The WOWGlobalFree16 function frees the specified global memory object.
- dWordWOWGlobalLock16(Integer hMem)
The WOWGlobalLock16 function locks a global memory object and returns a
pointer to the first byte of the object's memory block.
- dWordWOWGlobalLockSize16(Integer hMem dWord pcb)
The WOWGlobalLockSize16 function combines the functionality of the
WOWGlobalLock16 and 16-bit GlobalSize functions.
- IntegerWOWGlobalUnlock16(Integer hMem)
The WOWGlobalUnlock16 function unlocks a global memory object.
- IntegerWOWGlobalUnlockFree16(dWord vpMem)
The WOWGlobalUnlockFree16 function combines the functionality of the
WOWGlobalUnlock16 and WOWGlobalFree16 functions.
- IntegerWOWHandle16(Handle hHandle Integer iType)
The WOWHandle16 function is used to map a 32-bit handle to a 16-bit handle.
Because the relationship between a Win16 handle and a Win32 handle may
change in the future, use this function to convert handles instead of any
knowledge of the relationship between them.
- HandleWOWHandle32(Integer hHandle Integer iType)
The WOWHandle32 function is used to map a 16-bit handle to a 32-bit handle.
Because the relationship between a Win16 handle and a Win32 handle may
change in the future, use this function to convert handles instead of any
knowledge of the relationship between them.